Condi tion Operators

cond(<cond>,<true_expr>,<false_expr>)

The cond (Condition) token returns one of two values, depending on whether a specified condition is true. Arguments include:

Argument | Description
    <cond>
| Boolean expression to evaluate. 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>=A: A is greater than or equal to B • A==B: 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>
| Expression to evaluate if <cond> is TRUE (1)).
    <false_expr>
| Expression to evaluate if <cond> is FALSE (0).

==

The Equal to (==) token equates the two sides of the equation.

!=

The Not Equal to (!=) token makes the two sides of the equation not equal to each other.

<

The Less than (<) token makes the equation on its left side to be less than the equation on its right side.

<=

The Less than or Equal (<=) token makes the equation on its left side to be less than or equal to the equation on its right side.

>

The Greater than (>) token makes the equation on its left side to be greater than the equation on its right side.

>=

The Greater than or Equal (>=) token makes the equation on its left side to be greater than or equal to the equation on its right side.

&&

The AND (&&) token adds the two sides of an equation to each other.

||

The OR (||) token considers one side or the other of an equation.

Autodesk Softimage v7.5