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

Logical Operators

Logical operators can be used in conjunction with #if statements and other operators to perform logical checks.

and

{{$and arg1 arg2 ...}}

Returns true if all arguments evaluate to true

Arguments

Name
Description
Type
Required

arg1

1st argument to evaluate

Boolean

arg2

2nd argument to evaluate

Boolean

...

Remaining arguments to evaluate

Boolean

Returns

(Boolean)

Example

This example checks if the qty is greater than 5 and the amount is less than 200

{{$and ($gt qty 5) ($lt amount 200) }}

or

{{$or arg1 arg2 ...}}

Returns true if any of the arguments evaluate to true

Arguments

Name
Description
Type
Required

arg1

1st argument to evaluate

Boolean

arg2

2nd argument to evaluate

Boolean

...

Remaining arguments to evaluate

Boolean

Returns

(Boolean)

Example

This example checks if the qty is greater than 5 or the amount is less than 200

{{$or ($gt qty 5) ($lt amount 200) }}

Last updated

Was this helpful?