This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:func [2013/01/18 00:56] – grauniad | crpl:docs:func [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| ===== : | ===== : | ||
| - | ^Arguments^Result^Notation^ | + | ===== Syntax ===== |
| - | | | |'' | + | |
| + | : | ||
| Line 12: | Line 13: | ||
| Choose a unique name for the function. | Choose a unique name for the function. | ||
| Statements after a function block only execute if called by invoking the | Statements after a function block only execute if called by invoking the | ||
| - | function with an '@FUNC_NAME' call. | + | function with an '@FunctionName' call. |
| The end of a function block is either the end of the script or the | The end of a function block is either the end of the script or the | ||
| beginning of another function, whichever comes first. | beginning of another function, whichever comes first. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| # --- Roll a 100 sided die-------------- | # --- Roll a 100 sided die-------------- | ||
| # --- Return true or false randomly. | # --- Return true or false randomly. | ||