|| (logical OR)

I need to evaluate long list of variables and I want actionscript to perform an action if my variable fits into certain range.

I tried like this

if(_global.something == “var1” || “var2” || “var3” || “var4” || “var5” || “var6”)

but it doesnt work, the usage of || needs only 2 variables…

I dont want to write my script like
if(_global.something== “var1”){
samefunction();
} else if (_global.something==“var2”){
samefunction();
} else if …
and so on

how can I write my script efficiently in this case?