| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### while()
Examples |  |
    int i=0;
    while(i<80) {
      line(30, i, 80, i);
      i = i + 5;
    }
Description |  | 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().
Syntax |  |
    while(expression) {
      statements
    }
Parameters |  |
expression |  | a valid expression
statements |  | one or more statements
Usage |  | Web & Application
Related |  | for()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |