> ## Documentation Index
> Fetch the complete documentation index at: https://ctrlrun-docs-python-3-13-3-14.mintlify.site/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](/docs/reference/api/index).
* [Get started](/docs/get-started/quickstart) · [Why](/docs/why).
