https://prefect.io logo
i

itay livni

07/07/2020, 5:40 PM
Hi - Is there a way to check if a list is empty in the positive?
Copy code
with Flow("hello"):
    some_lst = make_lst()
    with case(some_lst.not_(), False):
        # do something
z

Zachary Hughes

07/07/2020, 6:03 PM
Hi @itay livni, would something like
with case(some_list, [])
do the trick for you?
i

itay livni

07/07/2020, 6:11 PM
@Zachary Hughes Thank you