Stata 15 help for inlist
[FN] Programming functions
Description: 1 if z is a member of the remaining arguments;
All arguments must be reals or all must be strings. The
number of arguments is between 2 and 255 for reals and
between 2 and 10 for strings.
Domain: all reals or all strings
Range: 0 or 1