Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Supported Conditional Operators (greater or equal, smaller or equal)

4 ANTWORTEN 4
GELÖST
Antworten
Nachricht 1 von 5
Anonymous
18610 Aufrufe, 4 Antworten

Supported Conditional Operators (greater or equal, smaller or equal)

According to this "Currently, <= and >= are not implemented. To express such a comparison, you can use a logical NOT. For example, a<=b can be entered as NOT(a>b)".

 

This was for Revit 2013, Revit 2014, Revit 2015...and now also for Revit 2016?

 

Why are two basic conditional operators (<= and >=) not implemented?

4 ANTWORTEN 4
Nachricht 2 von 5
daniel.kohlmann
als Antwort auf: Anonymous

A conditional statement uses this structure: IF (<condition>, <result-if-true>, <result-if-false>)

This means that the values entered for the parameter depend on whether the condition is satisfied (true) or not satisfied (false). If the condition is true, the software returns the true value. If the condition is false, it returns the false value.

 

Conditional statements can contain numeric values, numeric parameter names, and Yes/No parameters. You can use the following comparisons in a condition: <, >, =. You can also use Boolean operators with a conditional statement: AND, OR, NOT. Currently, <= and >= are not implemented. To express such a comparison, you can use a logical NOT. For example, a<=b can be entered as NOT(a>b).

 

The following are sample formulas that use conditional statements.

Simple IF: =IF (Length < 3000mm, 200mm, 300mm)

IF with a text parameter: =IF (Length > 35', “String1”, “String2”)

IF with logical AND: =IF ( AND (x = 1 , y = 2), 8 , 3 )

IF with logical OR: =IF ( OR ( A = 1 , B = 3 ) , 8 , 3 )

Embedded IF statements: =IF ( Length < 35' , 2' 6" , IF ( Length < 45' , 3' , IF ( Length < 55' , 5' , 8' ) ) )

IF with Yes/No condition: =Length > 40 (Note that both the condition and the results are implied.)



Daniel Kohlmann
Nachricht 3 von 5
daniel.kohlmann
als Antwort auf: daniel.kohlmann

We appreciate your comments and feedback. All product feature/functionality requests should be logged at the Product Feedback page. For most Media & Entertainment products click here and for all other products click here. You can log your request there. I am not sure why they have not been implemented.



Daniel Kohlmann
Nachricht 4 von 5
zach_wagoner
als Antwort auf: Anonymous

To do a greater than or equal to or less than or equal to statement you need to use a if or statement. 

 

So if we said 

 

If(or(X<9, X=9), Y, Z)

 

So what this is saying is if X is less than or equal to 9 then Y, bit if X is greater than 9 then Z. 

 

Thats how you work around the limitations. 

Nachricht 5 von 5
ToanDN
als Antwort auf: zach_wagoner

IF (NOT(

 

ToanDN_0-1629145805700.png

ToanDN_1-1629145828910.png

ToanDN_2-1629145848593.png

 

 

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report