how to compare incoming number and a list of predefined numbers

I'm also interested in your request, I would like to get the number and to do anything with it as a variable process.