Looping Instructions

Navigation:  Appendices > Macro Language > Instructions >

Looping Instructions

Previous pageReturn to chapter overviewNext page

Looping instructions allow you to execute a block of code repeatedly until a certain condition is met.

 

In the Q++ Macro Language, there are 2 types of loops :

 

for

The for loop allows you to loop over an integer counter variable which runs over a preset range of values.

while

The while loop allows you to loop while a Boolean expression remains true.

 

Each of these loops is more or less suitable, depending on the circumstances, as we will see in the following sections.


Topic 122800 updated on 01-Nov-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?loopinginstructions.htm