Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/if_1.txt
Test checks the basic iteration features.

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Print "OK" -->
<opt:root>
<opt:if test="$ok">
OK
</opt:if>
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
OK
>>>>data.php
	$view->assign('ok', true);
	$view->assign('fail', false);
Return current item: Open Power Template