User Tools

Site Tools


crpl:docs:if

This is an old revision of the document!


if

ArgumentsResultNotation
Cond b1 –

Description

Evaluate the first element on the stack. If True, then execute statements that follow, up to the ehdif 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.

Examples

# 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
crpl/docs/if.1358190638.txt.gz · Last modified: 2014/10/01 15:02 (external edit)