I am interested in creating a user-created command very similar to inlist, except that it will accept more than 10 arguments. Is it even possible to do this?
Note that someone else has made "inlist2" (https://ideas.repec.org/c/boc/bocode/s458920.html), which does take more than 10 arguments, but its usage is different than inlist in that it creates a dummy variable, and that it cannot be used on one line like: "keep if inlist2(var, val1, val2)".
Note that someone else has made "inlist2" (https://ideas.repec.org/c/boc/bocode/s458920.html), which does take more than 10 arguments, but its usage is different than inlist in that it creates a dummy variable, and that it cannot be used on one line like: "keep if inlist2(var, val1, val2)".
Comment