doc:loop uses variable alias now

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1949 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2008-05-13 19:14:32 +00:00
parent c44750f613
commit 8f1d24d57e
+3 -2
View File
@@ -119,19 +119,20 @@
<description>Loops the specified body.</description>
<remarks>
<remark>
This command sets the alias "i" from 0 to N-1 for every iteration.
This command sets the alias you choose, as first argument, from 0 to N-1 for every iteration.
</remark>
</remarks>
<examples>
<example>
<code>
<![CDATA[
loop 10 [ echo $i ]
loop i 10 [ echo $i ]
]]>
</code>
</example>
</examples>
<arguments>
<argument token="V" description="the alias used as counter"/>
<argument token="N" description="the amount of loops"/>
<argument token="body" description="the body to execute on each iteration"/>
</arguments>