if ( oclient == 'ap' || 'cgov' || 'chs' || 'fm' || 'id' || 'sm' )
if ( oclient == ('ap' || 'cgov' || 'chs' || 'fm' || 'id' || 'sm' ))
if ( oclient == 'ap' || oclient == 'cgov' || oclient == 'chs' || oclient == 'fm' || oclient == 'id' || oclient == 'sm' )
if ( oclient.search(/^(?:ap|cgov|chs|fm|id|sm)$/) !== -1 )or jQuery;
if ( jQuery.inArray( oclient , ['ap','cgov','chs','fm','id','sm'] ) )
Though this sort of thing can often be better handled another way entirely, (depending on what is actually being done).
Also, "oclient" is almost certainly a shit variable name and should be changed.
// "OTHER" [more commenty stuff you don't need to know](there's another variable "client" preceding that section in the script).
if (['ap','cgov','chs'].indexOf(oclient) > -1) {
Oh, and your original statement doesn't work because || basically starts a new if statement. So you were saying "if oclient equals 'ap' or if 'cgov' or if 'chs'", and because Javascript is annoying nice it tries to convert it into something that'll work - a string is "non-false", so it'll return true.
I mean, you've been crawling for quite a while, you're pretty good at it, can shuffle up quite a pace on all fours. It makes perfect sense to continue doing the same thing, you'll get somewhere in the end, even if everyone else has long since moved on.