This shows you the differences between two versions of the page.
Previous revision | |||
— | reference:spamrules_assignments [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Spam Filter Rules: Assignments====== | ||
+ | You can assign values to variables using the syntax | ||
+ | < | ||
+ | ${variable} = value | ${variable} | ||
+ | </ | ||
+ | |||
+ | =====Assignment operators===== | ||
+ | The spam filter rules support the following assignment operators: | ||
+ | ^= |Specify the value of the variable to equal the value after the assignment operator | | ||
+ | ^+= |Add the numeric value after the assignment operator to the current numeric value of the variable | | ||
+ | ^-= |Subtract the numeric value after the assignment operator from the current numeric value of the variable | | ||
+ | ^*= |Multiply the current numeric value of the variable by the numeric value after the assignment operator | | ||
+ | ^/= |Divide the current numeric value of the variable by the numeric value after the assignment operator | | ||
+ | ^.= |Concatenate the text after the assignment operator onto the current value of the variable | | ||
+ | |||
+ | * There must be a space on each side of the assignment operator | ||
+ | * On the right side of the assignment operator you can specify text or variables. | ||
+ | |||
+ | |||
+ | =====Functions===== | ||
+ | There are various ' | ||
+ | |||
+ | ^ Function name ^ Description ^ Version ^ | ||
+ | ^CalcBayes | ||
+ | ^GetDateNow | ||
+ | ^ABS |Returns the absolute value of the following value < | ||
+ | ^CEIL |Returns the smallest integer value which is greater than or equal to the following value (CEIL 3.1 = 4, CEIL -3.1 = -3) |2.2.1+ | | ||
+ | ^FLOOR | ||
+ | ^INT |Returns the following value with any fractional part truncated (INT 3.1 = 3, INT -3.1 = -3) |2.2.1+ | | ||
+ | ^LENGTH | ||