feulf / raintpl3

The easiest Template Engine for PHP
https://feulf.github.io/raintpl
258 stars 57 forks source link

syntax error, unexpected '(' - {if="$var == 0 || $var == 10"} #192

Open ramonribeiro96 opened 5 years ago

ramonribeiro96 commented 5 years ago

Hi, how can I do this?

{if="$var == 0 || $var == 10"}

it happens:

<?php if(  $var == 10(($var == 1 )) ){ ?>
            <li class="nav-item">
                <a class="nav-link" id="dashboard" href="/admin/dashboard">
                    <i class="material-icons text-justify">dashboard</i>
                    Dashboard
                </a>
            </li>
<?php } ?>

Error: Parse error: syntax error, unexpected '(' in ...