What Chris said, or with regex: 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. |