This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:exists [2013/12/19 16:44] – Fixed example Clean0nion | crpl:docs:exists [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| ===== -? | ===== -? | ||
| - | ^Arguments^Result^Notation^ | + | ===== Syntax ===== |
| - | | |0 or 1 depending on if VARNAME exists |'' | + | |
| + | -?! | ||
| Line 13: | Line 14: | ||
| Local variables persist across script invocations. | Local variables persist across script invocations. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| # check to see if variable " | # check to see if variable " | ||
| # If not, fire a spore and set the variable so no | # If not, fire a spore and set the variable so no | ||
| # further spores will launch. | # further spores will launch. | ||
| -?Spore if | -?Spore if | ||
| - | # A spore has already been fired | ||
| - | else | ||
| CurrentCoords RandUnitCoords 1 20 CreateSpore | CurrentCoords RandUnitCoords 1 20 CreateSpore | ||
| " | " | ||