Skip to content

Basic conditions ​

if tags in views mirror native PHP conditionals for showing or hiding template fragments.

php
<if "$test=='ok'">OK</if>

if / else ​

php
<if "$test=='ok'">
OK
<else />
Fail
</if>

if / elseif / else ​

php
<if "$test=='ok'">
OK
<elseif "$test=='running'">
Running
<else />
Fail
</if>

PhpTide documentation