mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix counter example
This commit is contained in:
@@ -3450,19 +3450,17 @@ The value of $name is Bob.</programlisting>
|
|||||||
<title>counter</title>
|
<title>counter</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
{* initialize the count *}
|
{* initialize the count *}
|
||||||
{counter start=0 skip=2 print=false}
|
{counter start=0 skip=2}<br>
|
||||||
|
|
||||||
{counter}<br>
|
|
||||||
{counter}<br>
|
{counter}<br>
|
||||||
{counter}<br>
|
{counter}<br>
|
||||||
{counter}<br>
|
{counter}<br>
|
||||||
|
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
|
|
||||||
|
0<br>
|
||||||
2<br>
|
2<br>
|
||||||
4<br>
|
4<br>
|
||||||
6<br>
|
6<br></programlisting>
|
||||||
8<br></programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<sect1 id="language.function.cycle">
|
<sect1 id="language.function.cycle">
|
||||||
|
Reference in New Issue
Block a user