Log in

View Full Version : Conditional statement?


skor
01-30-2010, 02:47 AM
I am trying to figure out how to do a conditional statement. Currently, I have it as

<vb:if condition="in_array($forumid , array(2,135,136,137,138,139,140,141,142,143,144,14 6,147,148))">

I am trying to have it say "if it's a child forum of this category"...

The reason is that I have a bunch of child forums under different categories so that specifying every forum in the if statement would make the statement VERY long. If figure if there's a way to specify just the parent category and have it apply to all child forums within that category, I could cut down the if statement.

Is it possible to do this?