Boolean Operators

Boolean Operators

Boolean Operators

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

Please note that Boolean 'NOT' is a [function](boolean-functions#not), not an operator.


    • Related Articles

    • Comparison Operators

      Comparison Operators = (Equals) The equality operator returns Boolean true if both operands are the same (type and value). Arrays and objects are checked for deep equality. Arrays must have the same values in the same order. Objects must have the ...
    • Other Operators

      Other Operators Fuuz Context Where this applies in Fuuz: These operators are frequently used in Fuuz Mappings and Rules to craft strings, bind variables, chain functions, and define transforms that keep payloads consistent across steps. Concatenation ...
    • Path Operators

      Path Operators Fuuz Context Where this applies in Fuuz: Path operators drive how Fuuz Pipelines traverse inbound payloads and build outbound messages. They are central to mapping data from PLC/MES/ERP sources into normalized objects before publishing ...
    • Numeric Operators

      Numeric Operators + (Addition) The addition operator adds the operands to produce the numerical sum. It is an error if either operand is not a number. Example 5 + 2 => 7 - (Subtraction/Negation) The subtraction operator subtracts the RHS value from ...
    • Boolean Functions

      Boolean functions $boolean() Signature: $boolean(arg) Casts the argument to a Boolean using the following rules: | Argument type | Result | | ------------- | ------ | | Boolean | unchanged | | string: empty | false| | string: non-empty | true | | ...