Join Slack
Powered by
If a Parameter is a boolean, can I use this to tri...
# ask-community
j
Jason
05/11/2022, 7:43 PM
If a Parameter is a boolean, can I use this to trigger optional flows, to allow UI control for options? Something like:
Copy code
save_s3 = Parameter(...) if save_s3: load_s3(dataset)
a
Anna Geller
05/11/2022, 7:46 PM
you can't use if/else in Prefect 1.0 - you could in Prefect 2.0 in 1.0 you would need
case()
j
Jason
05/11/2022, 7:47 PM
Ok, gracias
Jason
05/11/2022, 7:48 PM
Ah, the case block:
https://docs.prefect.io/core/idioms/conditional.html
👍 1
3
Views
Open in Slack
Previous
Next