In PHP, when I write this in a plugin:
PHP Code:
if (THIS_SCRIPT == "index")
{
global $globaltemplates;
if ($vbulletin->$options[option] == "1")
{
$globaltemplates = array_merge($globaltemplates, array('template'));
}
if ($vbulletin->$options[option] == "0")
{
$globaltemplates = array_merge($globaltemplates, array('second_template'));
}
}
What would be the $vbulletin->$options[option] have to equal to be true and false in a boolean mode?