This wiki is out of date, use the continuation of this wiki instead

Loops

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
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(<condition>)|while] loop (terminator: [[end]])+* [[while]] loop (terminator: [[end]])
-* [[repeat]] loop (terminator: [[until(<condition>)|until]])+* [[repeat]] loop (terminator: [[until]])
-* [[for([<initalization>];[<condition>];[<increment>])|for]] loop (terminator: [[end]])+* [[for]] loop (terminator: [[end]])
-* [[from variable = value to value2|from] loop (terminator: [[end]])+* [[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:

Example

Process loops()
Begin

End
Personal tools