Tests whether an expression evaluates to a member of a particular set.
bTest = IsInSet(Set, SetExpr)
| Variable | Description |
|---|---|
| bTest | TRUE if the expression evaluates to a member of Set. BOOLEAN. |
| Set | The set to test against. SET. |
| SetExpr | The expression to test. SET. |
IsInSet returns TRUE if SetExpr is a member of Set, or FALSE if it is not.
[-] testcase IsInSetExample()
[ ] COLORS TrafficLight = {Red, Yellow, Green}
[ ] Print(IsInSet(TrafficLight,Purple)) // prints: FALSE