is in list()
This function returns true if the value a is contained in the list b, otherwise false is returned.
Alternatively, the position of the found value in the list can be returned via parameter d.
Parameters
Parameter |
Description |
a |
Value to look for. |
b |
(optional) Name of the list. Default: default |
c |
(optional) true if check condition is 'contains' instead of 'equals'. Default: false |
d |
(optional) true if the function should return the position (index starts at 1) of the found value in the list. If the value is not found, the return value is still false . Default: false |
Examples
Defined is a list myList with the values {value1, value2}.
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Result |
value1 |
|
false |
|
false |
value2 |
myList |
false |
|
true |
VALUE2 |
myList |
false |
|
false |
val |
myList |
true |
|
true |
value2 |
myList |
|
true |
2 |
value3 |
myList |
|
true |
false |