PDA

View Full Version : 2 if conditionals


aveon
05-06-2007, 07:00 PM
how can i put followhing conditionals togather

<if condition="in_array($foruminfo['forumid'], array(1, 2, 3))"> test </if>

<if condition="THIS_SCRIPT=='index'"> bla bla </if>

Paul M
05-06-2007, 08:05 PM
Since they are giving different output I don't follow how you would want to join them.

If you just want to join them and get one result then just join the two conditions with an AND/OR - depending on what you want.


for example ;

<if condition="THIS_SCRIPT=='index' AND in_array($foruminfo['forumid'], array(1, 2, 3))">DO SOMETHING</if>