User Tools

Site Tools


crpl:docs:call

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
crpl:docs:call [2013/01/14 13:40] – created virgilwcrpl:docs:call [2022/06/25 13:15] – Reformat Karsten75
Line 1: Line 1:
-TODO+ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#vars_and_functions|Vars and Functions]] 
 + 
 +=====  @FUNC_NAME  ===== 
 + 
 +===== Syntax ===== 
 + 
 +@FUNCTIONNAME 
 + 
 +===== Description ===== 
 + 
 +Invokes a function named **FUNCTIONNAME**. Execution passes to said function and returns to the statement  
 +after the call when the function is complete. Arguments can be passed to and received from functions via the stack. 
 +=== Examples === 
 + 
 +<code 4RPL> 
 +# invoke the function defined as an example at :FUNC_NAME  
 +# with the value "35" to get a 35% chance of making  
 +# a rapid (speed 100) move.  
 +35 @chance if  
 + 100 @relocate #Move quickly  
 + endif 
 +</code>  
crpl/docs/call.txt · Last modified: 2022/06/25 13:17 by Karsten75