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

# Condition

> One `<argument>_<op>: operand` test against an action's arguments (SPEC-v0.1 §3.2).

`ctrlrun.Condition` — class, defined at `src/ctrlrun/policy.py:297`

```python theme={null}
from ctrlrun import Condition
```

```python theme={null}
class Condition
    def __init__(key: str, argument: str, op: str, operand: Any)
```

One `<argument>_<op>: operand` test against an action's arguments (SPEC-v0.1 §3.2).

Public since SPEC-v0.3 §11, because a `Grant`'s constraints are made of them and the two
axes share one evaluator: a second implementation would be a second place for `True` to
start comparing equal to `1`. `key` is the raw condition key the author wrote.

## Next

* [Python API index](/reference/api/index).
* [Get started](/get-started/quickstart) · [Why](/why).


## Related topics

- [Policy YAML reference](/reference/policy-yaml.md)
- [parse_conditions](/reference/api/parse_conditions.md)
- [Policy](/reference/api/Policy.md)
- [Threat model](/THREAT_MODEL.md)
- [Decisions](/concepts/decisions.md)
