Filter | Description |
---|---|
first
|
Returns the first item of collection Examples
|
last
|
Returns the last item of collection Examples
|
contains
|
Returns true , if at least one item of collection matches the conditionExamples
|
every
|
Returns true , if all items of collection match the conditionExamples
|
filter
|
Returns the collection filtered by some condition Examples
|
map
|
Changes each item of collection Examples
|
reduce
|
Returns the result of calculation aggregated the entire collection Examples
|
flatten
|
Converts the two-dimensional collection into one-dimensional Examples
|
sort
|
Sorts the collection by specified condition Examples
|
length
|
Returns the quantity of collection items Examples
|
is_subscribed
|
Returns the customers's subscription flag (type Customer ) to the specified channel (email , sms or waba ).Example
You can also check subscription to a specific category in the channel by passing the subscription category code as the second argument.
Example
|