List - remove element

List - remove element

Hi,
I've troubles in filtering a list with a condition :

for each item in list( condition ex. var1=>Var2 )
            {

                list.removeelement(item);
        }
                    Field:ui.add(list);

Creator return that is "Not able to find 'list' function" .

I ask if possible or I have to achieve the solution in another way.
Thanks&Greetings

Mike