xor(
    expression: any
)

Returns true when exactly one of the Boolean-converted input and a secondary predicate expression evaluates to true. Null-like and unconvertible values convert to false; zero converts to false; nonzero numbers and recognized true text convert to true. Always evaluates the secondary expression.

Parameters

Name Type Required Description
expression any Yes Specifies the secondary predicate expression evaluated after the input.

Argument evaluation

  • expression: Evaluated after converting the incoming value. References use their enclosing context; open predicate expressions use the current evaluation value.

Examples

#true | xor(#true)  #false

Kind: Predicate
Scope: boolean
Aliases: None


This site uses Just the Docs, a documentation theme for Jekyll.