red-accountant-23764
08/13/2025, 12:51 PMclass MyFlow(FlowSpec):
@step
def first_step(self):
condition = os.getenv(CONDITION)
if condition:
self.next(step_a1)
else:
self.next(step_b1)
@step
def step_a1(self):
self.next(step_a2)
@step
def step_b1(self):
self.next(step_b2)
When I have tried something similar I usually get an error saying that some steps can't be reached from the start step. Is there a way to ignore those steps if the condition isn't met?ancient-application-36103
08/13/2025, 2:28 PMred-accountant-23764
08/13/2025, 2:29 PMancient-application-36103
08/13/2025, 2:31 PMloud-afternoon-65325
08/14/2025, 5:06 PMsquare-wire-39606
08/27/2025, 9:26 PM