HELP
An object that branches execution flow based
on the values of its input(s).  Formerly
called If/Then.

USE
Use If/Then/Else to make decisions about
which subthread branch to execute.  You may
enter any legal math expression in the
formula boxes on the open view.

Only the output pin associated with a true
condition is activated.  The container output
is the value of the expression.

If/Then/Else evaluates the expressions in
the If/Else If clauses (top to bottom) until
one evaluates to a non-zero value.  This
non-zero container is copied to that
expression's corresponding output and that
one output is propagated.  Only one output is
propagated.  If none of the expressions
evaluate to a non-zero value, then the Else
output is propagated with the zero value of
the last evaluated expression.

If any of the expressions evaluate to a
value that is an array, the array values are
checked to see if they are either all zero or
all non-zero.  If the values are mixed, an
error is returned since it cannot be
determined whether the array is true or
false.  To produce a scalar, use expr == 0 or
expr!=0 since the equality relationals always
return a scalar.

LOCATION
Flow ==> If/Then/Else

OPEN VIEW PARAMETERS
Enter an expression in the edit field.

OBJECT MENU

* Add Else/If - Adds a condition that is
tested if the previous condition is not met
and an output pin that is activated if the
condition is true.

* Delete Else/If - Deletes a condition.
After selecting Delete Else/If, select a
condition to delete from a dialog box that is
displayed.

Delete Else/If is not available when only
one condition is displayed.  This feature is
only available if you have at least two
Else/If conditions.

NOTES
You may use any legal mathematical statements
in the conditional statement.  You may add
additional inputs for use in the expressions,
just as in the Formula box.

The objects under Conditional are
preconfigured If/Then/Else objects that test
for a specific condition.

To get a TRUE|FALSE (1|0) output, use the
Relational objects.  They are available under
the Math menu.

Also note the difference between menu
items under Relational and under Conditional.
Relationals are formulas with output 0 or 1.
Conditionals are If/Then/Else and have two
outputs, of which one activates.

SEE ALSO
Conditional.

Triadic Operator and Relational under 
Formula.
