This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| reference:spamrules_comments [2011/08/22 08:42] – created simon | reference:spamrules_comments [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| In the spam filter scripts, blank lines are ignored. | In the spam filter scripts, blank lines are ignored. | ||
| - | Any line beginning with a # character is treated as a comment. Comments must be on a line of their own; there is no way to add a comment to the end of a line | + | Any line beginning with a **#** character is treated as a comment. Comments must be on a line of their own; there is no way to add a comment to the end of a line. |
| - | =====Example===== | + | =====Examples===== |
| + | The following example demonstrates valid uses of comments | ||
| < | < | ||
| - | # This is a comment | + | ${Apples} = 1 |
| - | # This is another comment | + | # A comment |
| + | #This is another comment, but I'll type code on the next line | ||
| + | ${Pears} = 2 | ||
| + | </ | ||
| + | |||
| + | The following example shows an invalid use of comments | ||
| + | < | ||
| + | ${Apples} = 1 #Comments should never appear on the same line as any of your code | ||
| </ | </ | ||