> For the complete documentation index, see [llms.txt](https://myshell-ai.gitbook.io/neuralautomata/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://myshell-ai.gitbook.io/neuralautomata/states/conditionchoicestate.md).

# ConditionChoiceState

ConditionChoiceState is used to jumpt to another state based on the value of an condition (which can be computed based on some variables in the ctx). For example:

```python
"check_answer": ConditionChoiceState(
    name="check_answer",
    choices={
        "true": "correct_answer_state",
        "false": "wrong_answer_state",
    },
    condition='${str(image_selected) == str(correct_answer)}',
    title="check_answer",
),
```

Note that the key of choices can be any string apart from boolean values.
