Okay, here's the scenario - I have a section of code in one of the PHP files that sets a variable to either true or false, for example:
PHP Code:
if (blah blah blah)
{
$custom_variable = true;
}
else
{
$custom_variable = false;
}
Now, I want a section in one of the vB Templates to be able to pull from that so that if $custom_variable was set to true, than a section of code would execute (and if it's false, it would not) - for example:
Code:
<if condition="$custom_variable">
<!-- Insert Code to be executed here -->
</if>
However, the template portion of the code isn't working for me.
So the question is - what am I doing wrong?