or
or(g_arg1g_arg2[g_arg3... ] ) => nil /g_val
Description
Evaluates from left to right its arguments to see if the result is non-nil. As soon as an argument evaluates to non-nil, or returns that value without evaluating the rest of the arguments. If all arguments except the last evaluate to nil, or returns the value of the last argument as the result of the function call. Prefix form of the || binary operator.
Arguments
Value Returned
|
Value of the argument that evaluates to non- |
Examples
or(t nil)
=> t
or(nil t)
=> t
or(18 12)
=> 18
Related Topics
Logical and Relational Functions
Return to top