Array Operators
isIn
{{$isIn value array}}
Evaluates to true if value is in array.
Arguments
Name
Description
Type
Required
value
A static value or a variable path
StringNumberBoolean
array
Array of values to check for value
String ArrayNumber ArrayBoolean Array
Returns
(Boolean)
Example
{{#if ($isIn "sports" categories) }}Sports is in categories{{/if}}
{
"categories":[
"sports",
"entertainment",
"news"
]
}Sports is in categories
isNotIn
{{$isNotIn value array}}
Evaluates to true if value is not in array.
Arguments
Name
Description
Type
Required
value
A static value or a variable path
StringNumberBoolean
array
Array of values to check for value
String ArrayNumber ArrayBoolean Array
Returns
(Boolean)
Example
{{#if ($isNotIn "sports" categories)}}Sports is not in categories{{/if}}
Sports is not in categories
Last updated
Was this helpful?