if
Tests conditions to run different parts of your code
Syntax
if $foo is 10
check if variable equals number
if $foo is "value"
check if variable equals text value
if $foo is $bar
check if two variables are equal
if $foo is true
check if variable is true
if $foo < 10
check if variable less than number
if $foo < $bar:NUMBER
check if variable less than another variable
if $foo <= 10
check if variable less than or equal to number
if $foo <= $bar:NUMBER
check if variable less than or equal to another variable
if $foo > 10
check if variable greater than number
if $foo > $bar:NUMBER
check if variable greater than another variable
if $foo >= 10
check if variable greater than or equal to number
if $foo >= $bar:NUMBER
check if variable greater than or equal to another variable
if $foo contains "text"
check if variable contains text
if $foo contains $value:TEXT
check if variable contains value from another variable
if $foo starts-with "text"
check if variable starts with text
if $foo starts-with $value:TEXT
check if variable starts with value from another variable
if $foo ends-with "text"
check if variable ends with text
if $foo ends-with $value:TEXT
check if variable ends with value from another variable
if $foo is not "text"
check if variable does not equal text
if $foo is not 10
check if variable does not equal number
if $foo is not true
check if variable is not true
if $foo is not $bar
check if two variables are not equal
if missing $foo
check if variable is undefined, empty, or expired (TTL passed)
if have $foo
check if variable is defined, not empty, and fresh (not expired)