This shows you the differences between two versions of the page.
— |
continue [2006/07/11 04:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis:====== | ||
+ | [[continue]] | ||
+ | |||
+ | ======Description:====== | ||
+ | [[Continue]] ends the current iteration of a [[do]], [[while]], [[foreach]], | ||
+ | [[fe]], [[fec]], [[for|for .. next]], [[for|for .. in]], and | ||
+ | [[for|for (...)]] loop, just as if you had reached the end of the current | ||
+ | iteration normally. | ||
+ | |||
+ | The [[break]] and [[return]] commands are other ways of ending loops. | ||
+ | |||
+ | ======Examples:====== | ||
+ | for (@loop=0,loop<=10,@loop++) { | ||
+ | if (loop==4) { continue } | ||
+ | echo $loop of 10, skipping 4. | ||
+ | } | ||
+ | |||
+ | ======History:====== | ||
+ | The [[continue]] command first appeared in EPIC4pre1.031. | ||