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

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Do not print anything -->
<opt:root>
<opt:if test="$fail">
OK
</opt:if>
</opt:root>

>>>>expected.txt
OUTPUT

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