Skip to main content
The XOR function represents exclusive OR. XOR is used to compare logical expressions. The function returns true only in the following case.
  • When exactly one logical expression is true and all others are false, the XOR function returns true.

Supported Product Scenarios

The XOR function is supported in the following YiDA scenarios.
  • Form (main table fields)
  • Form (business association rules)
  • Form (validation)
  • Workflow design (validation rules)
  • Integration & automation
  • Workflow node
  • Connector

Format

Attributes

AttributeRequiredDescription
condition1YesThe logical expression or condition to evaluate.
  • When exactly one logical expression is true and all others are false, the XOR function returns true.
condition2Yes

Return Value

Example

As shown below, the XOR() function returns true only when the value of Numerical 1 is greater than 2 and the value of Numerical 2 is less than or equal to 2.