This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:else [2013/01/18 06:22] – grauniad | crpl:docs:else [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
<- [[crpl: | <- [[crpl: | ||
===== else ===== | ===== else ===== | ||
Line 11: | Line 10: | ||
=== Examples === | === Examples === | ||
< | < | ||
- | # Pick a random | + | # Pick a random |
- | # 10 Creeper, otherwise emit 100 Creeper | + | # If the random number is less than 95 emit 10 Creeper, |
- | 0 100 RandInt lt if | + | # otherwise emit 100 Creeper. |
- | CurrentCoords 10 SetCreeper | + | 0 100 RandInt |
+ | CurrentCoords 10 AddCreeper | ||
else | else | ||
- | CurrentCoords 100 SetCreeper | + | CurrentCoords 100 AddCreeper |
endif | endif | ||
</ | </ | ||