IsInSet Function

Action

Tests whether an expression evaluates to a member of a particular set.

Syntax

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.

Notes

IsInSet returns TRUE if SetExpr is a member of Set, or FALSE if it is not.

Example

[-] testcase IsInSetExample()
	[ ] COLORS TrafficLight = {Red, Yellow, Green} 
	[ ] Print(IsInSet(TrafficLight,Purple)) // prints: FALSE