https://prefect.io logo
Title
z

Zhibin Dai

03/07/2022, 4:34 PM
when using conditional logic in a flow, is it necessary to have two
with case
statements, or can i use just one that does something if a condition is true?
k

Kevin Kho

03/07/2022, 4:36 PM
You can just have one. Do you run into an issue?
z

Zhibin Dai

03/07/2022, 4:36 PM
Thanks! No im just beginning to use this and thought it would be easier to ask then test back and forth.
k

Kevin Kho

03/07/2022, 4:41 PM
There is honestly some unintuitive behavior to it that you only see when you start using it so just let me know if you encounter an issue
Just know that the mechanism is a SKIP if the condition is not met but the task inside is in the DAG. It just gets skipped
z

Zhibin Dai

03/07/2022, 4:51 PM
Will do, thanks for letting me know!