Thread
#prefect-community
    i

    itay livni

    2 years ago
    Hi - Is there a way to check if a list is empty in the positive?
    with Flow("hello"):
        some_lst = make_lst()
        with case(some_lst.not_(), False):
            # do something
    Zachary Hughes

    Zachary Hughes

    2 years ago
    Hi @itay livni, would something like
    with case(some_list, [])
    do the trick for you?
    i

    itay livni

    2 years ago
    @Zachary Hughes Thank you