If statement

If statement

yes_and_no
Collaborator Collaborator
607 Views
3 Replies
Message 1 of 4

If statement

yes_and_no
Collaborator
Collaborator

I have window trim profile at 3 y/n choices,

Profile = 2.5" (not a y/n, default)

Wide 3.5"

Wider 5.5"

My if and statement is not working,

Profile= if(and(wide, wider),(3.5", 5.5", 2.5")

 

0 Likes
Accepted solutions (1)
608 Views
3 Replies
Replies (3)
Message 2 of 4

barthbradley
Consultant
Consultant

.

 

Post a screenshot of your Family Types dialog box. 

 

 

=if(and(Parameter A, Parameter B), Value if True, Value if False))  

 

What the heck is the third value here?  =if(and(wide, wider),3.5", 5.5", 2.5")  

 

 

 

 

0 Likes
Message 3 of 4

David_W_Koch
Mentor
Mentor

Does Wider always take precedence over Wide or Default, and Wide over Default?

 

If so, then perhaps this will do what you want:

 

if(Wider, 5.5", if(Wide, 3.5", 2.5"))

 

If not, you will need to explain what you are trying to do in words, and someone here can help you translate that into a formula.

 

2024-07-06_15-35-08.PNG

 


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 4 of 4

yes_and_no
Collaborator
Collaborator
Accepted solution
  • This is not good, this is EXCELLENT !!!
0 Likes