Go to main content

while

Used to loop.

WHILE

NAME

while - Used to loop.

SYNOPSIS

do statements until expressions ;

while expressions do statements endw

DESCRIPTION

This statement adds a condition to the program. While this condition is respected, it is executed. This function is used to implement loops with expressions until the input condition is not reached anymore.

EXAMPLES

i=5;
do
        i--; i;
        if i==2 then continue; endif
        'i='; i;
until i<1;

i=5;
while i>0 do
        i--;
        "i=";
        i;
endw

SEE ALSO

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.