Log in

View Full Version : Please help, what is the right code for this if conditional


basketmen
09-28-2011, 10:36 PM
This code is for conditional in plugin, if not styleid 1
if(STYLEID != 1)

how to write, if not few styleid, like styleid 1, 2, 3

i try this, but its looks like not correct
if (!in_array(STYLEID, array(1,2,3)))

the plugin used are global_start

thank you for the help before

kh99
09-28-2011, 11:15 PM
i try this, but its looks like not correct
if (!in_array(STYLEID, array(1,2,3)))



It looks to me like that should work.

basketmen
09-29-2011, 02:58 AM
if there is other code i can try, please let me know

the hook used are global_start