Deutsch English
Alphabetical index
Array functions
CGI functions
Data types
Date functions
Debugging
Fulltext functions
Language elements
  • 'ANWEISUNGEN'
  • 'AUSDRÜCKE'
  • 'BEZEICHNER'
  • DEF
  • IF
  • 'INDEXBESCHREIBUNG'
  • 'KONSTANTEN'
  • MODULE
  • PROCEDURE
  • REPEAT
  • RETURN
  • USES
  • VAR
  • WHILE
    Numerical functions
    Operators
    Other functions
    Ramtext functions
    Selecting
    Socket functions
    Statistical functions
    Stream functions
    String functions
    System functions
    Table functions
    Text functions
    Home    Overview    Search    Impressum    Contact    Members
    Topic complex Language elements
    Function REPEAT
    Short Non-rejecting program loop
    Syntax REPEAT Anweisungen UNTIL boolexp
    Parameter boolexp: logical expression, selection
    Return
    See also:
    WHILE 'ANWEISUNGEN'
    Description REPEAT leads to a so called non-rejecting loop. The orders are executed. After that the logical expression is tested. If it's value is FALSE the whole loop will be processed from beginning.

    So, this loop will be processed at least once, even if the logical expression would return TRUE even before the loop is entered.

    Example:
    VAR i : INTEGER
    REPEAT
      cgiwriteln(str(i++))
    UNTIL i>=10

    User comments:
    Write a comment:
    Name
    EMail
    Subject
    Text (Switch mode)

    Choose between
    the normal and the
    advanced editor.
    The advanced editor
    runs in IE 5+ and
    Mozilla 1.4+ only
    SPAM-Protection Please enter tdbengine in this field.

    tdbengine chat
    irc.tdbengine.org
    #tdbengine

       Copyright © 2003-2004 tdb Software Service GmbH
       Alle rechte vorbehalten. / All rights reserved
       Last changed: 21.10.2004
    {Fehler für :execmacro{execmacro="sessionspy"}