> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logic: Xor

> Checks that exactly one condition matches.

Combines two conditions and matches only when *exactly one* of them is satisfied. If both match, or neither matches, the rule fails. Use this when two situations should never be true at the same time, for example flagging a price that is either unusually high *or* unusually low, but treating a normal price as neither.

This documentation describes: [Schema](/schemas/condition/logic-xor)

## Fields

**Left condition**

Required

The first of the two checks to compare. You pick and configure any condition here, such as a number comparison or an equality check.

See the [condition](/references/condition) reference.

**Right condition**

Required

The second of the two checks to compare. The rule matches only when this check and the left check disagree: one matches and the other does not. When both match, or both fail, the rule fails.

See the [condition](/references/condition) reference.

## Sample data

This rule compares two checks on an order's `price`: greater than 100 on the left, less than 10 on the right. A price matches when exactly one side is true. A mid-range price triggers neither side, so it does not match. (A price cannot be both above 100 and below 10, so the "both true" case never arises here; if it ever did, the rule would not match.)

| Field | Value |
| - | - |
| Left condition | Number greater than `100` |
| Right condition | Number less than `10` |

| Price | Greater than 100? | Less than 10? | Matches? |
| - | - | - | - |
| `250` | yes | no | yes |
| `5` | no | yes | yes |
| `50` | no | no | no |

```json Configuration theme={null}
{
  "prototype": "logic-xor",
  "parameters": {
    "left": { "prototype": "number-greater-than", "parameters": { "value": 100 } },
    "right": { "prototype": "number-less-than", "parameters": { "value": 10 } }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.