Checking URL for one of three values
What's the best way to write an if statement to check if test is either equal to 200, 300 or 400?
if (window.location.href.indexOf('?test=') = 200)
if (window.location.href.indexOf('?test=') = 300)
if (window.location.href.indexOf('?test=') = 400)