Integer Switch
Syntax
i = lsw(p, i1, i2)
Description
Returns either i1 or i2 (integers) depending on the value of the argument p (which may be an expression evaluating to a logical value):
i = i1 when p is TRUE
i = i2 otherwise
Example
iflag = lsw(t > 5.0, 1, 2)