PDA

View Full Version : How to write conditional for array of THIS_SCRIPT?


bzcomputers
11-29-2012, 09:54 PM
I am looking to exclude something from showing if it is on pages with certain THIS_SCRIPTs.

Could someone provide a conditional example to exclude an array list of scripts like: one, two, three

Thanks.

nerbert
11-29-2012, 11:16 PM
if(in_array(THIS_SCRIPT, array(one, two, three)))

or with a "!" for not in this list