Hi, I need a help with the IF function.
Here is are the situation,
(If No of Mod is 1)
If End Gable_Left is tick, No of Gable should be 1
If End Gable_Right is tick, No of Gable should be 1
If both End Gable_Left & End Gable_Right are tick, No of Gable should be 2
If non is tick, No of Gable should be 0
(If No of Mod is 2)
If End Gable_Left is tick, No of Gable should be 2
If End Gable_Right is tick, No of Gable should be 2
If both End Gable_Left & End Gable_Right are tick, No of Gable should be 3
If non is tick, No of Gable should be 1
(If No of Mod is 3)
If End Gable_Left is tick, No of Gable should be 3
If End Gable_Right is tick, No of Gable should be 3
If both End Gable_Left & End Gable_Right are tick, No of Gable should be 4
If non is tick, No of Gable should be 2
until now, if No of Mod is 2, I able to make No of Gable turns 2 if either Left or Right is tick. But if both Left and RIght is tick, the No of Gable is still 2, not change to 3. 😖
Solved! Go to Solution.
Solved by ToanDN. Go to Solution.
Solved by barthbradley. Go to Solution.
AND Conditional Statements:
if(and(End Gable_Left, End Gable_Right), 2, if(and(not(End Gable_Left), not(End Gable_Right)), 0, if(and(End Gable_Left, not(End Gable_Right)), 1, 1)))
More info here to help you:
https://www.revitforum.org/node/1126
Note the OR Conditional Statement as well. It's constructed the same way as the AND Conditional Statement.
if(and(End Gable_Left, End Gable_Right), No of Mod + 1, if(or(End Gable_Left, End Gable_Right), No of Mod, No of Mod - 1))
Can't find what you're looking for? Ask the community or share your knowledge.