> For the complete documentation index, see [llms.txt](https://enchantedmobs.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enchantedmobs.superiormc.cn/for-ultimatequest/configuration/conditions/logical.md).

# Logical Conditions

Each example is placed inside the conditions mapping of an objective or compatible task field. See [common fields](/for-ultimatequest/configuration/conditions.md).

## `any`

Passes if any named child condition matches.

| Field        | Default | Description                    |
| ------------ | ------- | ------------------------------ |
| `conditions` | —       | Named event-condition mapping. |

```yaml
conditions:
  choice:
    type: any
    conditions:
      water:
        type: in_water
        target: PLAYER
      rain:
        type: storm
```

An omitted conditions section passes; an explicitly empty conditions mapping has no matching child and fails.

## `not`

Negates the combined AND result of its children.

| Field        | Default | Description                    |
| ------------ | ------- | ------------------------------ |
| `conditions` | —       | Named event-condition mapping. |

```yaml
conditions:
  outside:
    type: not
    conditions:
      water:
        type: in_water
        target: PLAYER
```

This differs from any: not(A AND B) is true unless both children pass. Use the common not: true field to invert one condition.
