![]() |
How to write this if statement?
Trying to write an if statement to toss into postbit templates using these criteria:
If: forum ID=3 AND post#=1 insert a custom html code end If statement thnx |
<if condition="$thread[forumid] == 3 AND $post['postcount'] == 1>
Custom HTML Code </if> You just have to make sure those elements are available in the template you are editing, which I guess is the postbit so should be OK. If it doesn't work try taking the single quotes out. Edited per borbole's suggestion. |
Quote:
HTML Code:
$forum[forumid] |
You see that's what I thought but when I saw the quotes around 'postcount' I confused myself and changed it.
|
thnx for the help :-) I was using && instead of AND and 'forumid' too ... lol. I'll try this out when I get home. ps- Is there a way to check for a certain tag in an if statement? lets say a thread has the tags "youtube, multimedia, kung fu bear, level4" ... is there some way to write an if statement such as:
if (youtube tag is present) |
Those single quotes should be there in an if statement.
|
All times are GMT. The time now is 06:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|