Navigation
Main Page
Random Page
Create a new Page
All Pages
Categories
Administration
File Management
Login/Logout
Language Selection
Your Profile
Create Account
Quick Search
Advanced Search »
Back
History
while loop
'''while'''('condition','body') - Function of iterations. The cycle carries out a 'body' while the 'condition' is true. '''ADVICE: Choose it from the Programming palette''' '''IMPORTANT''': Inside the 'body' ([[line]] 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 [image|interrupt|{UP}while/interrupt.png]. As a '''general rule''', if the calculation is too long, make double checking of the '''loops'''. Here is a simple example of using '''while''' loop: [imageauto|while loop|{UP}while/while1.png|{UP}while/while1.png]
ScrewTurn Wiki
version 2.0.37. Some of the icons created by
FamFamFam
.