This is an old revision of the document!
~~DISCUSSION~~ <- CRPL reference <- Flow Control
Arguments | Result | Notation |
---|---|---|
– |
When the if statement evaluates to False, then the statements following the else, up to the endif, are executed instead.
# 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