Hi all,
I have to check for several possible values of a variable and I currently do it like so:
But this seems overly manual to me. I'm imagining something like the SQL "IN" function:
Does such a thing exist in JavaScript, or do I need to write my own function?
I have to check for several possible values of a variable and I currently do it like so:
Code:
(SHIP_TYPE == "M" || SHIP_TYPE == "S" || SHIP_TYPE == "X")
Code:
SHIP_TYPE IN ('M','S','X')
Comment