The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need help to build a conditional
On my board I'm using in showthread a conditional like this:
Code:
<if condition="$threadinfo['threadid'] == '1010'"> <table height="60" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="230">HI!</td> </tr> </table> </if> <if condition="$threadinfo['threadid'] == '2020'"> <table height="60" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="230">HEllo!</td> </tr> </table></if> <else /> <table height="60" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="230">Yes we can!</td> </tr> </table> I don't know how to say to the script :" If you don't find the specified thread id in conditional, display something else. I think I need a global conditional but I don't know which. hope you'll understand my issue. Could you help me ? Thank you |
#2
|
||||
|
||||
I'm not a coder but perhaps something like this:
HTML Code:
<if condition="$threadinfo['threadid'] == '1010'"> <table height="60" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="230">HI!</td> </tr> </table> <else /> <if condition="$threadinfo['threadid'] == '2020'"> <table height="60" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="230">HEllo!</td> </tr> </table> <else /> <table height="60" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="230">Yes we can!</td> </tr> </table> </if> |
#3
|
|||
|
|||
Thank you Simon, I've forgot to thank you. It works.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|