User Tools

Site Tools


crpl:docs:do

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:do [2019/04/14 14:36] – Clarified that loops can be nested more just indexes are unreachable, added hyperlinks, cleaned up. Grabzcrpl:docs:do [2021/02/05 11:43] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#flow_control|Flow Control]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#flow_control|Flow Control]]
 =====  do  ===== =====  do  =====
Line 10: Line 10:
 The statements following the do, up to the loop statement, are executed repeatedly. Each iteration (loop), the initial value (Index) is incremented by one at the bottom of the loop and compared to Limit. When Index=Limit, excecution will proceed at the first statement following Loop.  The statements following the do, up to the loop statement, are executed repeatedly. Each iteration (loop), the initial value (Index) is incremented by one at the bottom of the loop and compared to Limit. When Index=Limit, excecution will proceed at the first statement following Loop. 
  
-Loops can be nested, however, indexes of loops more than 3 deep will become unreachable. See: [[crpl:docs:i|I]], [[crpl:docs:i|J]] and [[crpl:docs:i|K]].+Loops can be nested, however, indexes of loops with a nesting difference more than 3 will become unreachable, unless they were saved to a variable. See: [[crpl:docs:i|I]], [[crpl:docs:i|J]] and [[crpl:docs:i|K]].
  
 For more complex loops, see [[crpl:docs:while|While]]. For more complex loops, see [[crpl:docs:while|While]].
crpl/docs/do.1555266999.txt.gz · Last modified: 2019/04/14 14:36 by Grabz