Condition (Expression Function Reference)
The Function > Conditions > Condition command in the expression editor inserts the token cond(<cond>,<true_expr>,<false_expr>) at the insertion point in the editing pane. This token returns one of two values, depending on whether a specified condition is true. Replace the dummy arguments as follows:
|
<cond> |
Replace with a Boolean expression to evaluate. If this expression is TRUE (1), the value of <true_expr> is returned. If it is FALSE (0), the value of <false_expr> is returned. You can build Boolean expressions as follows: • A<B. A is less than B. • A>B. A is greater than B. • A<=B. A is less than or equal to B. • A>=B. A is greater than or equal to B. • AB==. A is equal to B. • A!=B. A is not equal to B. • A&&B. A and B. • A||B. A or B. |
|
<true_expr> |
Replace with an expression to evaluate if <cond> is TRUE (1). |
|
<false_expr> |
Replace with an expression to evaluate if <cond> is FALSE (0). |
Example
cond(Fc<50, 5, 10))
Returns 5 if the current frame number is less than 50, returns 10 otherwise.
Autodesk Softimage v.7.5