Monday, 9 May 2011

My Chosen Programming Tool - 'While-loop'

The term I have chosen to use for this project is 'While - Loop'. The definition of a while-loop on the processing reference website is: Controls a sequence of repetitions. The while structure executes a series of statements continuously while the expression is true. The expression must be updated during the repetitions or the program will never "break out" of while.


A simpler statement that I understand better is: a While-loop is a control flow statement that allows code to be executed repeatedly based on a given boolean condition. It can be thought of a repeating 'if' statement. The while consists of a block of code and a condition. The condition is evaluated, and if true, the code runs. This repeats until the condition becomes false. 

No comments:

Post a Comment