User Tools

Site Tools


crpl:docs:else

This is an old revision of the document!


else

ArgumentsResultNotation

Description

When the if statement evaluates to False, then the statements following the else, up to the endif, are executed instead.

Examples

# Pick a random number. If the random number is less than 95 emit 
# 10 Creeper, otherwise emit 100 Creeper 
0 100 RandInt lt if 
		CurrentCoords 10 SetCreeper 
	else 
		CurrentCoords 100 SetCreeper 
	endif
crpl/docs/else.1358190600.txt.gz · Last modified: 2014/10/01 15:02 (external edit)