<< try Interpreter functions

while


while loop.


Syntax


while test_expression, statements, end

Description


while loop executes a set of statements as long as a the test condition remains true.

Example


i = 0;
while lt(i, 10)
  disp(i)
  i = i + 1;
end

See also


for.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< try Interpreter functions