How-To Guides · Expressions and scripting

Boolean Operators

Last updated

Standard JSONata Boolean operators available in expressions throughout the Fuuz platform.

and (Boolean AND)

The and operator returns Boolean true if both operands evaluate to true. If either or both operands is not a Boolean type, then they are first cast to a Boolean using the rules of the $boolean function.

Example

library.books["Aho" in authors and price < 50].title

or (Boolean OR)

The or operator returns Boolean true if either operand evaluates to true. If either or both operands is not a Boolean type, then they are first cast to a Boolean using the rules of the $boolean function.

Example

library.books[price < 10 or section="diy"].title

Note: Boolean NOT is a function ($not() — see Boolean Functions), not an operator.

See Also

Need more help?

Ask the Fuuz community, or open a ticket with Fuuz support.