View Full Version : if conditionals (Brian or anybody that can help)
tomshawk
11-30-2004, 12:03 AM
Hello Everyone
Being a noncoder like myself I'm stuck
taking a look at this thread
http://www.vbadvanced.com/forum/showthread.php?t=831
I told you Brian I'd be back :p , welp here I am.
I want to set up a third block, one for Articles, but
How would I do the if conditionals or the variable you talked about? in your last post.
Help from anyone would be most helpful
Thank you
tomshawk
11-30-2004, 12:44 AM
looking at it a little closer.
Will this work
<if condition="$mods['identifier'] == 'Latest_QOTW' ">Latest_QOTW
<else />
== 'Latest_Articles' ">Latest_Articles
<else />
$vbphrase[latest_forum_topics]
</if>
Brian
11-30-2004, 05:28 PM
<if condition="$mods['name'] == 'Latest_QOTW' ">Latest_QOTW</if>
<if condition="$mods['name'] == 'Latest_Articles'">Latest_Articles</if>
<if condition="!$mods['name']">$vbphrase[latest_forum_topics]</if>
Something like that should work. :)
k4l4sh
12-02-2004, 07:25 AM
maybe a stupid question, but: do single quotes matter?
Brian
12-02-2004, 10:53 AM
Single quotes where exactly?
k4l4sh
12-03-2004, 07:53 PM
<if condition="$mods['name'] == 'Latest_Articles'">Latest_Articles</if>
around name
around Lates_Articles
Brian
12-03-2004, 09:04 PM
You may be able to get away without them, but I would recommend doing it the right way.
tomshawk
12-09-2004, 02:00 AM
instead of 'name'
I used the original word 'identifier' and it worked perfectly
<if condition="$mods['identifier'] == 'Latest_QOTW' ">Latest_QOTW</if>
<if condition="$mods['identifier'] == 'Latest_Articles'">Latest_Articles</if>
<if condition="!$mods['identifier']">$vbphrase[latest_forum_topics]</if>
Thank you Brian ;) You rock
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.