Question about If statements

So if I want to shorten the following code :

int input = 0;
if (input == 1 || input == 2 || input == 3) {}

How can I do it?
like instead of all the “||”

Put all of the valid choices in a container
Check if input is in the valid choices container
continue if it is, get input again if not