MEMBER INDEX

MEMBER _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

<expression> member <list>

memberis an infix binary comparison operator that evaluates to true if <expression> is equal to a member of the list <list>.

examples:


if a member {a,b} then 1 else 0; 

  1 


if 1 member(1,2,3) then a else b; 

  a 


if 1 member(1.0,2) then a else b; 

  b

Logical operators can only be used in conditional statements such as

if...then...else or while...do. <member> can also be used as a prefix operator. However, this use is not encouraged. Finally, equal (=) is used for the test within the list, so expressions must be of the same type to match.