PDA

View Full Version : 2019 Controlling a yes/no parameter with a if(or) formula



Kurtis.McArthur782069
2019-05-29, 10:46 PM
I'm building a window grill family. I would like to control the visibility of the Single Horizontal bar with the following formula.

"if(or(Horizontal Bar Count =1, Horizontal Bar Count =2)<true>,<false>)"

If the statements are true I would like the box to be checked. If the statements are false I would like the box to be unchecked.

What do I replace <true> and <false> to get this formula to work. If this is not the correct formula, what would be the correct formula?

Kurtis

david_peterson
2019-05-30, 01:33 PM
Yes/No parameters are typically controlled with 1=yes, 0=no if your looking at values.
I'm assuming you're trying to get either 1 bar or 2 bars to display?
Assuming they're separate modeled objects, I've have the single bar VG applied to a "Single Bar" parameter and the 2 bar applied to the "Double Bar" Parameter.
Then change the formula to for the double to not(Single Bar)
Something like that. This assumes you always want a grill.

buchrick344977
2019-05-31, 07:58 PM
If/then formulas for yes/no parameters don't follow the same syntax as when used for other parameters. The parameter will be checked if the statement is true.

107396