Eq (MPI)
From Tapestries MUCK
(Difference between revisions)
(Added a simple functional example.) |
|||
(One intermediate revision not shown) | |||
Line 1: | Line 1: | ||
- | [[Category: | + | [[Category:functions (MPI)]][[Category:Logical Functions (MPI)]] |
=eq= | =eq= | ||
<mpi>{eq:expr1,expr2}</mpi> | <mpi>{eq:expr1,expr2}</mpi> | ||
Line 5: | Line 5: | ||
If both expressions evaluate out to numbers, then this compares them numerically. | If both expressions evaluate out to numbers, then this compares them numerically. | ||
+ | |||
+ | Functional example: | ||
+ | <mpi>{if: | ||
+ | {eq:{sex:me},female} | ||
+ | ,The bright lights and mirrors are perfect for quick makeup touchups | ||
+ | ,You look out of place in bright lights of the ladies room | ||
+ | }</mpi> |
Latest revision as of 22:05, 24 April 2007
eq
{eq:expr1,expr2}
If expr1 and expr2 evaluate out to the same value, then this returns true. Otherwise, this returns false.
If both expressions evaluate out to numbers, then this compares them numerically.
Functional example:
{if: {eq:{sex:me},female} ,The bright lights and mirrors are perfect for quick makeup touchups ,You look out of place in bright lights of the ladies room }