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