Compare one Variable to a list

hey^^

how to compare a variable to a list? i mean i want something to happen when the actual value of the variable is in the defined list

Do it like this

blocks (85)