in

0     0     Edited May 18, 2016

Returns true if the first expression is equal to one or more of the specified discrete values, otherwise false.

Usage

x ← in(expression, value1, value2, ..., valueN)  


Examples

in(q1,8,9,10)

The above is equilavent to writing:
(q1==8 or q1==9 or q1==10)

Note: It's okay to provide just one value:

in(q1,5)

which is the same as writing:
(q1==5)


See Also

inrange


Leave a Comment

Please sign in to leave a comment.