Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/if_7.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:elseif test="$fail">
NICE
</opt:elseif>
<opt:else>
FAIL
</opt:else>
</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