Recent Changes - Search:
Email iofreak@yahoo.com with comments and/or suggestions.

Aibo General

Aibo Development

Wiki Help

Aibo Links

R-Code » REPEAT

REPEAT...UNTIL Statement

Executes the block of statements between REPEAT and UNTIL repeatedly for as long as the specified expression is evaluated as false, the block of will always be executed at least once.

Models

ERS-210 ERS-220 ERS-31x ERS-7

Syntax

REPEAT
...
UNTIL:val1:op:val2

The REPEAT...UNTIL statement syntax has the following parts:

PartDescription
val1Variable or constant.
opA valid boolean operator (=, ==, <>, !=, <, <=, >, >=, &, |, ^, &&, ||).
val2Variable or constant.

Example(s)


   // count upward from 1 to 10
   LET:i:1
   REPEAT
      PRINT:"i=%d":i
      ADD:i:1   
   UNTIL:i:>:10
 

Edit - History - Print - Recent Changes - Search - Site Terms of Use
Page last modified on February 11, 2006, at 05:32 PM CST