Patron Wiki
Advertisement

SAL recognizes pretty much the standard assortment of logical operators:

OPERATOR SIGN DESCRIPTION
Equal == Is the value of left side equal to the value of right side? Should not be confused with the assignment operator =
Not equal != Is the value of the left side different from the value of the right side?
Bigger > Is the value of the left side bigger than the value of the right side? Does NOT work for comparing strings.
Smaller < Is the value of the left side smaller than the value of the right side? Does NOT work for comparing strings.
Smaller or equal <= Is the value of the left side smaller than or equal to the value of the right side? Does NOT work for comparing strings.
Bigger or equal >= Is the value of the left side bigger than or equal to the value of the right side? Does NOT work for comparing strings.
AND && Used to connect two variable checks. Both must be true for "AND" to be true. Only two checks can be connected in the same line.
Advertisement