PDA

View Full Version : Yes/No Parameters and If Statements??



aretap
2008-04-28, 03:05 PM
This should be a real easy one but I just can not figure it out. In and If statement how do I check for a true or false with a yes/no parameter.

yes/no parameter is called "LOCK"

Secondary yes/no parameter is called "CAKE"

=IF(LOCK = on, CAKE = on, CAKE = off)

I know this is not the syntax but how would I write this??

I have tried 1 for true, true for true, yes for true non work what is it??

iamjeff
2008-04-28, 03:10 PM
in the formula section for Cake use if(Lock = 1, 1,0) i think this should work

David Conant
2008-04-28, 03:22 PM
Much simpler, no need for IF statements

CAKE = LOCK
or to get an inverse
CAKE = Not (LOCK)

chris.macko125036
2008-04-28, 03:28 PM
yes/no statements are already conditions in revit imply all the if/then imformation.

just type LOCK in the formula field for CAKE

CAKE=LOCK

aretap
2008-04-28, 03:39 PM
Thanks that helps but I need it to actually perform and IF(OR(

i.e. = For the Parameter Center I need it to turn on if either is true else turn off

IF(OR(Left Scribe = 1,Right Scribe = 1),1,0)

When I run this line if gives me an improper use of Boolean error?:?:

aretap
2008-04-28, 03:40 PM
Just figured it out from the previous comments

or(Left Scribe, Right Scribe)

This does what i want it to!!!

Thanks!!:)