> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-docs-scavio-google-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditional Steps

> Constructor parameters for the workflow Condition class, which branches execution based on an evaluator.

| Parameter               | Type                                                                                    | Default                | Description                                                                                                                        |
| ----------------------- | --------------------------------------------------------------------------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `evaluator`             | `Union[Callable[[StepInput], bool], Callable[[StepInput], Awaitable[bool]], bool, str]` | `True`                 | Function, boolean, or CEL expression string that selects the branch                                                                |
| `steps`                 | `WorkflowSteps`                                                                         | Required               | Steps to execute if the condition is met (if branch)                                                                               |
| `else_steps`            | `Optional[WorkflowSteps]`                                                               | `None`                 | Steps to execute if the condition is not met (else branch)                                                                         |
| `name`                  | `Optional[str]`                                                                         | `None`                 | Name of the condition step                                                                                                         |
| `description`           | `Optional[str]`                                                                         | `None`                 | Description of the condition step                                                                                                  |
| `human_review`          | `Optional[HumanReview]`                                                                 | `None`                 | All HITL settings in a single config. See [HumanReview Config](/workflows/hitl/human-review).                                      |
| `requires_confirmation` | `bool`                                                                                  | `False`                | Pause before evaluating the condition. Approval evaluates `evaluator`; rejection follows `on_reject`                               |
| `confirmation_message`  | `Optional[str]`                                                                         | `None`                 | Message shown to user when requesting decision                                                                                     |
| `on_reject`             | `Union[OnReject, str]`                                                                  | `OnReject.else_branch` | Action when rejected: `OnReject.else_branch` (execute else\_steps; raw string value `"else"`), `skip`, `cancel`                    |
| `on_error`              | `Union[OnError, str]`                                                                   | `OnError.skip`         | Action when a sub-step fails: `skip` (log and stop remaining sub-steps), `fail` (re-raise), `pause` (pause for HITL retry or skip) |
