Check if an item is inside a list or collection

I’d like to check if an item is inside a list. How can I do that?

To do that, you use the CONTAINS operator.
This operator can be used on lists, sets, and maps.
In the case of maps, CONTAINS applies to the map values.

Also, see the Documentation.