For the complete documentation index, see llms.txt. This page is also available as Markdown.

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}}

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}}

Last updated

Was this helpful?