This is an old revision of the document!
~~DISCUSSION~~ <- CRPL reference <- Flow Control
Arguments | Result | Notation |
---|---|---|
Cond | b1 – |
Evaluate the first element on the stack. If True, then execute statements that follow, up to the endif statement. If False, execution skips to the first statement following the endif statement. Any nonzero value is consierered True, a value of zero is False.
# Creates a runner at the units current coordinates # every three seconds, but only if there is digitalis underneath. CurrentCoords GetDigitalis if CurrentCoords 2 10 20 CreateRunner 90 Delay endif