User Tools

Site Tools


reference:spamrules_statement_goto
no way to compare when less than two revisions

Differences

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


Previous revision
reference:spamrules_statement_goto [2018/11/14 10:45] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +======Spam Filter Rules: Goto======
 +^Statement  |Goto |
 +^Version  |2.1.7+ |
 +^Purpose  |A mechanism for directing the script towards a specified label |
  
 +The **Goto** statement requires a label name, in the format
 +  Goto <label name>
 +
 +Labels are single word entries that appear on a line of their own, immediately preceded by the colon (:) character. 
 +The colon character is not part of the label name.
 +
 +You must not create an infinite loop.
 +
 +=====Examples=====
 +Basic example
 +<code>
 +If ${Score} >= 100
 + Goto End
 +Endif
 +
 +# Anything placed here will only run if ${Score} < 100 and "Goto End" is not executed
 +
 +:End
 +</code>
 +
 +
 +An infinite loop - you should **never** allow this to happen
 +<code>
 +:beginning
 +# Statements
 +Goto beginning
 +#The code will never get this far, because there is an infinite loop above
 +</code>
reference/spamrules_statement_goto.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1