diff --git a/class.templater.php b/class.templater.php index e0c0af5..56cfc07 100644 --- a/class.templater.php +++ b/class.templater.php @@ -627,6 +627,15 @@ class TemplateIfElement extends TemplateSyntaxElement $a = $this->FetchVariable($this->left, $data); $b = $this->right; + if($b == "true") + { + $b = true; + } + elseif($b == "false") + { + $b = false; + } + switch($this->operator) { case "=":