Type in the words(s) to search for:

    Mark results
      Userbooster Help

      while Statement

      Executes a statement until a condition is false.

      while (expression)
         statement 

      Arguments

      expression

      Boolean expression that is evaluated each time a new iteration of the loop begins. If the expression is true, the loop is executed; otherwise the loop is terminates.

      statement

      One or more statements. The argument is optional.

      Example

      function function_returns_8()
      {
      var x = 3;
      var i = 0;
          while( i < 10 )
          {
              i++;
              if( i < 5 )
                  continue;
              x++;
          }
          return x;
      }