Skip to main content
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