> ## Documentation Index
> Fetch the complete documentation index at: https://docs-unity.molca.id/llms.txt
> Use this file to discover all available pages before exploring further.

# ConditionalStep

> Binary true/false branching — activates one child step or another.

**Namespace:** `Molca.Sequence`\
**File:** `Packages/com.molca.core/Runtime/Sequence/Step/ConditionalStep.cs`

## Role

`ConditionalStep` evaluates a boolean condition at runtime and activates either the `trueStep` or `falseStep` child. Call `SetCondition(bool)` to evaluate; the step completes immediately after activating the correct branch.

## Inspector

* **`conditionDescription`** — human-readable description of the condition.
* **`trueStep`** — child step activated when condition is `true`.
* **`falseStep`** — child step activated when condition is `false`.

## Code

```csharp theme={null}
using Molca.Sequence;

public class ScoreGate : MonoBehaviour
{
    [SerializeField] private ConditionalStep passFailStep;

    public void EvaluateScore(int score)
    {
        passFailStep.SetCondition(score >= 70);
    }
}
```

## Related

* [Step (base class)](/core/step)
* [BranchingStep](/core/branching-step) — multi-branch alternative
* [Core step types](/core/core-step-types)
