Yea some javascript shorthand. if that value is equal to the value of a or b, maybe something like this?
if(val==a||b)