How to check that the item is in list
i want to make a app which get a list from firebase and i want to check a particular item in list
and use it with if than block
it item is in list than do this else do this
is it possible if possible than please give me solution for this