INLIST

INLIST returns a bit(1) value that indicates whether x is equal to any of the remaining arguments.

Read syntax diagramSkip visual syntax diagramINLIST(x,,y)
x and y
Expressions. They must be either all ORDINAL with the same type or all computational.

INLIST(x,y1,y2,y3,...,yn) is equivalent to (x=y1) | (x=y2) | (x=y3) | ... | (x=yn), where n is in the range 2 to 63 inclusive.

After the evaluation of the first argument x, the evaluation of the remaining arguments must not change the address or value of the first argument. This condition is true when all but the first argument are constants. It is also true if the second and subsequent arguments do not rely on the invocation of any user functions that change storage associated with the first argument.