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

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Print "OKVAL1VAL2" -->
<opt:root>
<opt:if test="$ok">
OK
<opt:elseif test="$fail">
NICE
</opt:elseif>
VAL1
<opt:else>
FAIL
</opt:else>
VAL2
</opt:if>
</opt:root>

>>>>expected.txt
OUTPUT

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