MEMBER?

Syntax

MEMBER? object1 object2

Explanation

MEMBER? outputs TRUE if the first input is an element of the second input; otherwise, it outputs FALSE.

Examples

? MEMBER? "A [A B C]

Result: TRUE

? MEMBER? "A [X Y Z]

Result: FALSE

? MEMBER? "A "CAT

Result: TRUE

? MEMBER? "SALE [BARN SALE]

Result: TRUE

? MEMBER? "SALE BARN SALE

Result: FALSE

? MEMBER? 2 14236

Result: TRUE

?