Dictionary and check for empty list


(Pvyaka01) #1

How do I check if a dictionary/array is empty in a task?

Thanks


#2

For both, you can convert the dictionary or list to a boolean <% bool(ctx().dictionary_variable %> (for Orquesta) or <% bool($.dictionary_variable %> (for Mistral).


(Pvyaka01) #3

That seems to have worked. Thank you!