User Tools

Site Tools


4rpl:commands:func_once

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:func_once [2021/01/14 15:32] – created virgilw4rpl:commands:func_once [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 2: Line 2:
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
-This callback is called once when a script first executes and then never again. It is similar to using a once/endonce block.+====== :Once ====== 
 + 
 +===== Description ===== 
 + 
 +":Once" is called when a script first executes and then never again. It is similar to using a once/endonce block. 
 + 
 +===== Example =====
  
 <code 4rpl> <code 4rpl>
 :Once :Once
-   trace("A one time print")+   "A one time print" Trace
 </code> </code>
 +
 +===== See Also =====
 +
 +[[cw4:Programming notes]]
 +
4rpl/commands/func_once.1610638347.txt.gz · Last modified: 2025/02/14 14:56 (external edit)