Logical operations
Operator | Summary |
---|---|
and | Evaluates all parameters until one is found to be FALSE, returns that value. |
choose | Returns one of the parameters (pinpointed by the input parameter). |
cond | Returns the value of the first clause who's condition is TRUE. |
eq | Returns TRUE if the input equals the first parameter or if all parameters are equal. |
false | Creates and returns a boolean FALSE. |
first_set | Returns the first parameter that is set (or FALSE). |
ge | Returns TRUE if a parameter is greater than or equal to another parameter. |
gt | Returns TRUE if a parameter is greater than another parameter. |
le | Returns TRUE if a parameter is less than or equal to another parameter. |
lt | Returns TRUE if a parameter is less than another parameter. |
ne | Returns TRUE if one or more of the parameters do not match. |
not | Returns the opposite of the input or the first parameter (TRUE/FALSE). |
null | Returns TRUE if the input value is NULL (not the same as 0). |
or | Evaluates all parameters until one is found to be TRUE, returns that value. |
true | Creates and returns a boolean TRUE. |
Balazs Halasy (09/03/2005 1:00 pm)
Balazs Halasy (09/03/2005 1:12 pm)
Comments
Comparison Operators
Thursday 07 September 2006 8:34:01 pm
Kristian Hole
See the following reference:
http://www.php.net/manual/en/language.operators.comparison.php