Checks if the first argument value is in the list. The check is performed through an Equal on each argument value. It returns true if the argument value is found, false otherwise.
The type of the <expression>
must match with items of the list. Types of items of the list, as a reminder, must match with each other.
List
in(<parameters>)
Parameter | Type |
---|---|
String | String |
Boolean | Boolean |
Integer | Integer |
Decimal | Decimal |
Duration | Duration |
DateTime | DateTime |
DateTimeOnly | DateTimeOnly |
List | listString |
List | listBoolean |
List | listInteger |
List | listDecimal |
List | listDuration |
List | listDateTime |
List | listDateTimeOnly |
List | listDateOnly |
in(<integer>,<listInteger>)
in(<decimal>,<listDecimal>)
in(<string>,<listString>)
in(<boolean>,<listBoolean>)
in(<dateTimeOnly>,<listDateTimeOnly>)
in(<dateTime>,<listDateTime>)
in(<dateOnly>,<listDateOnly>)
in(<duration>,<listDuration>)
Return a boolean.
in(4,[4,5,3,4])
Returns true.
in(8,[4,5,3,4])
Returns false.
in(#{ExperiencePlatform.ProfileFieldGroup.profile.person.gender}, ["male"])