Log in

View Full Version : Help with array


Cyn
12-12-2004, 07:51 PM
I want to place this around a postbit code to specify a forum the code associates with:

<if condition="$thread['forumid'] == 10">(My Postbit Code)</if>

But I want to include other forumids rather than just one. Can someone please show me how?

Would it be?:

<if condition="in_array($forum['forumid'], array(10, 11, 12)">(My Postbit Code)</if>

TIA!

Cyn
12-12-2004, 08:07 PM
Never mind. Figured it out. :nervous: