COG Keyword - while

While will run a block of code over and over until a condition becomes false. Syntax:

  while (condition)
  {
     // run code
  }

Example:

  while (i < var2) i = i + 1;
  • Create:
This page was last modified 17:01, 19 December 2005.   This page has been accessed 304 times.