List operation filter

2
Is it possible to use the list operation 'filter' to filter all objects with an empty value? Example: I have a list of employees and want to filter all objects out, with an empty value in the attribute 'name.' I could use a loop, where I remove all objects from my list, when the name is empty. But is it also possible to use a list operation 'filter'. Because you need to specify the 'equals' expression and it's not possible to say: != empty.
asked
1 answers
4

Do list operation filter with comparison attribute = empty, this returns the list of items you do not want. Then do a subtract of the original list minus the new list from the previous operation and you have the list filtered on the items you do want.

answered