User Tools

Site Tools


crpl:docs:func

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:func [2013/01/17 19:56] grauniadcrpl:docs:func [2022/06/28 15:32] (current) – Reformat Karsten75
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#vars_and_functions|Vars and Functions]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#vars_and_functions|Vars and Functions]]
  
 =====  :FUNC_NAME  ===== =====  :FUNC_NAME  =====
  
-^Arguments^Result^Notation^ +===== Syntax ===== 
-| | |''(user defined) ''|+ 
 +:FunctionName
  
  
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 ===
-<code>+<code 4RPL>
 # --- Roll a 100 sided die--------------  # --- Roll a 100 sided die-------------- 
 # --- Return true or false randomly.  # --- Return true or false randomly. 
crpl/docs/func.1358470596.txt.gz · Last modified: 2014/10/01 15:02 (external edit)