Denso RC5 Specifikace Strana 259

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 258
Chapter 11 Flow Control Statements
11-9
11.3 Repeat
DO-LOOP (Statement)
Function
Executes a decision iteration (repetition).
Format
DO [{WHILE|UNTIL}[<Conditional expression>]]
:
LOOP
Or
DO
:
LOOP [{WHILE|UNTIL}[<Conditional expression>]]
Explanation
DO WHILE and DO UNTIL are head decision iterations.
LOOP WHILE and LOOP UNTIL are tail decision iterations.
A WHILE statement repeats while a conditional expression is
satisfied (true (except for 0)) and an UNTIL statement repeats until
a conditional expression is satisfied.
If the right side of <Conditional expression> is ignored, the system
determines whether the value is true (except for 0).
If <Conditional expression> is ignored the conditional expression is
regarded as true (except for 0) and the loop becomes infinite in a
WHILE statement.
In the UNTIL statement, a head decision is not processed and a tail
decision executes the loop once.
There is also a WHILE-WEND statement which serves the same function
as DO WHILE-LOOP, however, only DO WHILE-LOOP should be used.
There is also a REPEAT-UNTIL statement which serves the same
function as DO-LOOP UNTIL, however, only DO-LOOP UNTIL should be
used.
WHILE and UNTIL can be ignored but they mean an infinite loop.
Related Terms
EXIT DO, WHILE-WEND, REPEAT-UNTIL, FOR-NEXT
Zobrazit stránku 258
1 2 ... 254 255 256 257 258 259 260 261 262 263 264 ... 691 692

Komentáře k této Příručce

Žádné komentáře