looplist command

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6534 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-06-14 11:20:13 +00:00
parent 22909543ad
commit 040ec8d482
3 changed files with 55 additions and 34 deletions
+19
View File
@@ -612,6 +612,25 @@
</references>
</command>
<command name="looplist">
<description>Browses a list and executes a body for each element</description>
<examples>
<example>
<code><![CDATA[looplist "zero one two three" number [ echo $number ]]]></code>
</example>
</examples>
<arguments>
<argument token="V" description="the list to browse"/>
<argument token="N" description="the alias containing the current element value."/>
<argument token="body" description="the body to execute on each iteration"/>
</arguments>
<references>
<identifierReference identifier="break"/>
<identifierReference identifier="continue"/>
<identifierReference identifier="loop"/>
</references>
</command>
<command name="break">
<description>Aborts a loop created with a 'loop' or 'while' command.</description>
<examples>