$set.containsElement($element)
Checks whether the set contains the element.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| set | Set | A set for which to check if element is included. |
yes | |
| element | Number/string/boolean/businss object/set. | An element for which to check whether it is contained in set. |
yes |
Type: Boolean
true, if the element is included in the set.
list(1, 2, 3).containsElement(2)
Output: true
list(1, 2, 3).containsElement(4)
Output: false