Is it possible to embed "If"-"Then" statements into a "Yes"/"No" parameter?
I am trying to control a Yes/No parameter by having it reference another parameter. Hoping someone can give me insight into what the correct formatting should be for the formula.
Example:
Void D TR = 2'-0"
Check Box Parameter (yes/no) = IF(Void D TR>0', "Yes", "No")
I can get this formatting/formula to work in a "regular" parameter formula but I am having trouble in the Yes/No area.
Can anyone lend a helping hand?
Re: Is it possible to embed "If"-"Then" statements into a "Yes"/"No" parameter?
Quote:
Originally Posted by
montoyam
I am trying to control a Yes/No parameter by having it reference another parameter. Hoping someone can give me insight into what the correct formatting should be for the formula.
Example:
Void D TR = 2'-0"
Check Box Parameter (yes/no) = IF(Void D TR>0', "Yes", "No")
I can get this formatting/formula to work in a "regular" parameter formula but I am having trouble in the Yes/No area.
Can anyone lend a helping hand?
Are you wanting to do this through the Revit API? If so it is easy enough. I can provide a sample.
Re: Is it possible to embed "If"-"Then" statements into a "Yes"/"No" parameter?
no need to do through API. It's easy in the interface, just need someone to tell you (I couldn't figure it out at first either). Since Yes/No is essentially a boolean, it's implied that any equation is an if/then to turn it on or off. Just put 'Void D TR>0' as your formula. If the formula evaluates to true, it will be yes, if not, it will be no...
hth
Re: Is it possible to embed "If"-"Then" statements into a "Yes"/"No" parameter?
If is implied in Yes/No parameters. All you need is:
Check Box Parameter = Void DTR >0'
Re: Is it possible to embed "If"-"Then" statements into a "Yes"/"No" parameter?
Thanks to all of you & glad to hear I was not the only one missing the simplistic answer.
You just made my day! :-)