I'm wondering whether there is a simple way to keep observations only if a variable is equal to one of the selected values.

Code:
 keep if var == 1 | var == 5 | var == 8 | var == 10
Can the above code be simpler? I would like to have something like the following.


Code:
 keep if var in (1 5 8 10)