The while Loop
The while loop is used to execute a series
of instructions while a specified condition remains true.
The while loop takes the following format.
while( conditional_test )
{
List of stitcher rules to execute
}The while loop repeats
as long as the conditional test evaluates to true.
The conditional_test can
contain boolean expressions containing AND and OR.
An example while loop is shown below.
while( count < numberOfLayers )
{
List of stitcher rules to execute
}The above loop repeats as long as the
value of the count variable is less than the value
of numberOfLayers.