Or (MPI)
From Tapestries MUCK
(Difference between revisions)
(2 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | [[Category: | + | [[Category:functions (MPI)]][[Category:Logical Functions (MPI)]] |
=or= | =or= | ||
<mpi>{or:expr1,expr2...}</mpi> | <mpi>{or:expr1,expr2...}</mpi> |
Latest revision as of 01:47, 31 March 2007
or
{or:expr1,expr2...}
Returns true if expr1 or expr2 evaluate as true. Otherwise, this returns false.
If expr1 was true, this doesn't bother to exaluate expr2, as it does C-style shortcutting. If there are more than two arguments, then this will evaluate them until either one returns true, or until it has evaluated all the expressions.
This returns false only if all of the expressions return false.