Can I make this statement shorter?
if(abc==\'value1\' || abc==\'value2\' || abc==\'value3\') {//do something}
to make it look similar to this:<
You could use a switch statement. Like this:
switch
switch(abc) { 'value1': 'value2': 'value3': // do something break; default: // noop }
But your original if with || is probably still preferable.
if
||