Workflows supports lists (or arrays) for storing data.
Lists can be created in a workflow by being returned as the result of a step or by being defined in an assign
step.
You can update the value at an index by using an assign
step and index notation.
my_list(len(my_list) - 1)
You can create a copy of a list with a new element concatenated at the end by using the list.concat
function.
list.concat(my_list, "Kiwi")
To check whether a given key is present in a list, use the following expression:
"Kiwi" in my_list
To check whether a key is not in a list, use the not()
function:
not("Kiwi" in my_list)