Yes/No Parameters

Yes/No Parameters

jason.wells
Participant Participant
553 Views
2 Replies
Message 1 of 3

Yes/No Parameters

jason.wells
Participant
Participant

I am trying to build yes/no parameters that control one another. Ex: Recessed only comes on if Width > 4' or if LED,Globe Lights, Fluroescent are checked how do I write this code

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

BardiaJahan
Advocate
Advocate
Accepted solution

I think this is what you are looking for:

 

 = if (or(or(or(LED, Globe Lights) , Fluorescent), Width > 4') , True, False ) 

 

This makes the parameter true if any of those four parameters are true.

 

If you want it be true if Width > 4 or all other three are true then try this:

 

= if (and(and(and(LED, Globe Lights) , Fluorescent), Width > 4') , True, False ) 

0 Likes
Message 3 of 3

JimJia
Alumni
Alumni
dear jason.wells I think the follow is what you are looking for: =or(and(LED,Globe Lights,Fluorescent),Width>4)

Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes