Checks if a value exists in a set/array.
entryinset(value, set)
| Parameter | Type | Description |
|---|---|---|
value |
Any | The value to search for |
set |
Array | The array to search in |
Boolean - True if the value exists in the set, false otherwise.
The entryinset function checks whether a specific value exists within an array or set. This is useful for membership testing and validation.
Result = ENTRYINSET(3, [1, 2, 3, 4, 5])
// Result: true
Result = ENTRYINSET(10, [1, 2, 3, 4, 5])
// Result: false
IsValidStatus = ENTRYINSET(OrderStatus, ["pending", "shipped", "delivered"])
IsAllowedCategory = ENTRYINSET(Category, AllowedCategories)
- Validation: Check if value is allowed
- Filtering: Conditional processing
- Membership: Check set membership
- Logic: Conditional branching
- findfirstvaluebyexactmatch - Find value in array
- if - Use with conditional logic
- when - Conditional expression
- Returns boolean (true/false)
- Uses exact matching
- Case-sensitive for strings
- Uses the Math service's
entryInSetmethod