MyBB Hacks

Full Version: Using Tempate Conditionals to check variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey!

I have created one table in my template that will hold some items that are stored in plugin variables...
Is there anyway to check if the variable has something in it? Like:

Code:
<if threadvariable exists then>
SOMETHING
<else>
SOMETHING
</if>



Thank you very much.

Depends on what your definition of "in it" is...

Code:
<if $myvariable then>
...
</if>

Reference URL's