User Tools

Site Tools


4rpl:commands:do

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
4rpl:commands:do [2021/01/08 11:01] – external edit 127.0.0.14rpl:commands:do [2023/12/03 04:53] – [Description] chaosbeing
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-<=[[4rpl:start| Index]]+<= [[4rpl:start| Index]] \\ 
 +<= [[4rpl:start#Flow Control]]  
  
 ====== do ====== ====== do ======
Line 6: Line 8:
  
 ===== Description ===== ===== Description =====
-The statements following the do, up to the loop statement, are executed repeatedly.+The statements following the do, up to the [[loop]] statement, are executed repeatedly.
 An index counter is initialized to (start). The index will be incremented, or decremented, by one at the bottom of the loop. An index counter is initialized to (start). The index will be incremented, or decremented, by one at the bottom of the loop.
 When the index counter is one away from the limit, execution will proceed at the first statement following Loop. Loops can be nested, but no more than 3 deep. When the index counter is one away from the limit, execution will proceed at the first statement following Loop. Loops can be nested, but no more than 3 deep.
  
 NOTE: If (limit) is less than (start), the the loop decrements rather than incrementing. NOTE: If (limit) is less than (start), the the loop decrements rather than incrementing.
-The range of a do loop is always (start,limit(inclusive of start and exclusive of limit).+The range of a do loop is always [start,limit(inclusive of start and exclusive of limit).
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/do.txt · Last modified: 2023/12/06 20:13 by Karsten75