User Tools

Site Tools



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

Link to this comparison view

reference:spamrules_statement_goto [2018/11/14 10:45] (current)
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.
 +Basic example
 +If ${Score} >= 100
 + Goto End
 +# Anything placed here will only run if ${Score} < 100 and "Goto End" is not executed
 +An infinite loop - you should **never** allow this to happen
 +# Statements
 +Goto beginning
 +#The code will never get this far, because there is an infinite loop above
reference/spamrules_statement_goto.txt ยท Last modified: 2018/11/14 10:45 (external edit)