DK
07/02/2021, 4:21 PMwith case(results, None):
return # End the Flow
The examples with the Case Control Flow class always show an alternative task to run:
with case(cond, "a"):
run_if_cond_is_a()
with case(cond, "b"):
run_if_cond_is_b()
But I don't always have another task, sometimes I just need the flow to end.
I could check the inverse of 'results' to see if there is data instead of for None, and I could then run the subsequent tasks, but then I would need another task to check that condition. That's fine if that's how it needs to be done, but I just wanted to check if there was a simpler solution that I'm missing.Kevin Kho
ENDRUN
signal?DK
07/02/2021, 4:48 PM