I'm trying to set a variable equal to the value of an url parameter. If this value does not match one of the approved values then I need to set this variable to a default value.
I'm using or statements right now, but this gets kind of ridiculous when you have many different approved values. Is there some kind of shorthand or better way of doing this?
var lang = [grab value of lang parameter if set];
if(lang!="en" || lang!="es" || lang!="pt" || lang!="ja" || lang!="zh" || ...) lang = "ko";