Purpose

WHILE ENDWHILE specifies the repetitive execution of a statement or block of statements.
 

Syntax

WHILE condition statement or block 
ENDWHILE

 

Operation

condition is any logical or relational expression.
 

Remarks

The loop is executed while the condition is True.

When the expression becomes False, and control reaches the ENDWHILE statement, execution terminates.
 

Example
 

#num = 1

// Loop till num is not equal to 10
WHILE #num # 10
UMSG("Entered " + conv(#num) + " time", -1)
#num = #num + 1
ENDWHILE

Comment on this topic

Topic ID: 520136

Table of Contents

Index

Glossary

-Search-

Back