- This wiki is out of date, use the continuation of this wiki instead
Loops
From FenixWiki
(Difference between revisions)
Revision as of 15:16, 1 May 2007 (edit) FCR (Talk | contribs) ← Previous diff |
Revision as of 15:17, 1 May 2007 (edit) (undo) FCR (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
[[category:reserved]] | [[category:reserved]] | ||
- | [[category:operator]] | ||
== Definition == | == Definition == | ||
Line 8: | Line 7: | ||
* the normal [[loop]] | * the normal [[loop]] | ||
- | * [[while | + | * [[while]] loop (terminator: [[end]]) |
- | * [[repeat]] loop (terminator: [[ | + | * [[repeat]] loop (terminator: [[until]]) |
- | * [[ | + | * [[for]] loop (terminator: [[end]]) |
- | * [[from | + | * [[from]] loop (terminator: [[end]]) |
== Example == | == Example == |
Revision as of 15:17, 1 May 2007
Definition
LOOP
Loop is a reserved word used to create iterations in your code. The terminator for a loop is end. the statements between these words will get repeated indefinately. There are several types of loops:
- the normal loop
- while loop (terminator: end)
- repeat loop (terminator: until)
- for loop (terminator: end)
- from loop (terminator: end)
Example
Process loops() Begin End