Conditional branching step

interface ConditionalStep {
    type: "conditional";
    id: string;
    condition: string;
    then: WorkflowStep[];
    else?: WorkflowStep[];
}

Properties

type: "conditional"
id: string
condition: string
then: WorkflowStep[]
else?: WorkflowStep[]