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

Identity Operators

isNull

{{$isNull value}}

Evaluates to true if value is null.

Arguments

Name
Description
Type
Required

value

A static value or a variable path

Any

Returns

(Boolean)

Example

{{#if ($isNull category) }}Category is null{{/if}}

isNotNull

{{$isNotNull value}}

Evaluates to true if value is not null.

Arguments

Name
Description
Type
Required

value

A static value or a variable path

Any

Returns

(Boolean)

Example

{{#if ($isNotNull category) }}Category is not null{{/if}}

isNil

{{$isNil value}}

Evaluates to true if value is null or undefined .

Arguments

Name
Description
Type
Required

value

A static value or a variable path

Any

Returns

(Boolean)

Example

{{#if ($isNil category) }}Category is nil{{/if}}

isNotNil

{{$isNotNil value}}

Evaluates to true if value is not null or undefined.

Arguments

Name
Description
Type
Required

value

A static value or a variable path

Any

Returns

(Boolean)

Example

{{#if ($isNotNil category) }}Category is not nil{{/if}}

isEmpty

{{$isEmpty path}}

Evaluates to true if the value of the variable path is undefined, null , an empty string ('') , empty object ({}), or an empty array ([]).

Arguments

Name
Description
Type
Required

path

A path to a variable to check for a value

Any

Returns

(Boolean)

Example

{{#if ($isEmpty category )}}Category is empty{{/if}}

isNotEmpty

{{$isNotEmpty value}}

Evaluates to true if value is not undefined, null, an empty string (''), an empty object ({}), and not an empty array ([]).

Arguments

Name
Description
Type
Required

path

A path to a variable to check for a value

Any

Returns

(Boolean)

Example

{{#if ($isNotEmpty category) }}Category is not empty{{/if}}

Last updated

Was this helpful?