FEEL expressions - filter null values in a list

Hi again to Zeebe team!
move to Feel expressions is very welcomed! great feature.
I have the following question:
I have a list in variables A, looking like this [null, “value1”]
I’d like to pass variable A to a service task, but with null values filtered out

I tried using expressions such as for loop (=for x in A return …) , based on

but modeler rejects any expression with whitespace in it

Any advice on how to achieve this filtering?
Thanks
Eetay

Hi @Eetay :wave:

Nice :+1:

You can also filter a list by the lister operator:

vars[item != null]

Related issue for the modeler: Editor doesn't allow blanks · Issue #223 · zeebe-io/zeebe-modeler · GitHub

This expression can also be written without whitespace =vars[item!=null].

Alternatively, you can edit the expression in the XML view of the modeler.

Best regards,
Philipp

Tx. @philipp.ossler great feature, and your suggestion (without spaces) totally worked!