while do...end while

Examples


The while do...end while statement runs statements repetitively. The statements enclosed in the while do...end while statement are run as long as the boolean expression remains true. The expression is evaluated once before each repetition of the loop.

Syntax

while boolexp do statements end while

Parameters

boolexp – Any expression that can be evaluated as true or false, such as:

A=B
Customer_Name="John Smith" 
A+B<C

statements – Any valid sanScript statements.


Documentation Feedback