next up previous contents index
Next: STRING_IF conditional Up: TOP Commands Previous: DO DO   Contents   Index

IF -- conditional statement for numbers

OPERATION = <string:1> 'SUM' EQ | GT | LT | GE | LE | NE
ARGUMENTS = <real:0> 0.00 real arguments to the math operation
THEN = <string:1> 'undefined' statement when IF evaluates to T
ELSE = <string:1> 'undefined' statement when IF evaluates to F

Description:
This command performs a conditional IF operation on two real arguments. The possible operations are equal (EQ), greater than (GT), less than (LT), greater or equal (GE), less or equal (LE), and not equal (NE). If the condition is true, the command specified in the THEN variable is executed. Otherwise the command in the ELSE variable is executed. Typically, these commands are GO_TO statements.


next up previous contents index
Next: STRING_IF conditional Up: TOP Commands Previous: DO DO   Contents   Index
Ben Webb 2004-10-04