Determines whether an expression matches another expression in a set of expressions.
Syntax
INLIST(eExpression1, eExpression2 [, eExpression3 ...])
Returns
Logical or null value
Arguments
eExpression1
Specifies the expression INLIST( ) searches for in the set of expressions.
eExpression2 [, eExpression3 ...]
Specifies the set of expressions to search. You must include at least one expression (eExpression2), and can include up to 24 expressions (eExpression2, eExpression3, and so on).
All the expressions in the set of expressions must be of the same data type.
Remarks
INLIST( ) returns true (.T.) if it finds the expression in the set of expressions; otherwise INLIST( ) returns false (.F.). The null value is returned if eExpression1 is the null value. The null value is also returned if eExpression1 is not the null value, eExpression1 does not match another expression, and at least one of the other expressions is the null value.