While Loop

while('condition','body') - Repeats 'body' while 'condition' is true.

Advice: Choose it from the Programming palette

Important note: Inside the 'body' (line block could be used) the 'condition' must change from true (different than zero) to false (zero) otherwise we can have the endless (never ending) loop. The only way in this case for while or for loop is to interrupt the calculation by choosing

Interrupt processing button on the toolbar

As a general rule, if the calculation is too long, double-check your loops.

Here is a simple example of using while loop:

while loop computing Fibonacci numbers

This page is based on a legacy wiki article by Radovan Omorjan.