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

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Print numbers from 0 to 9 -->
<opt:root>
<opt:for begin="@i is 0" while="@i lt 10" iterate="@i++">
{@i}::
</opt:for>
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
0::
1::
2::
3::
4::
5::
6::
7::
8::
9::
Return current item: Open Power Template