HPlogo System Debug Reference Manual > Chapter 6 System Debug Command Specifications M-X

WHILE

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

While condition evaluates to TRUE, executes all commands in cmdlist.

Syntax



   WHILE condition DO cmdlist

Parameters


condition

A logical expression to be evaluated.

cmdlist

A command list (or a single command) executed while condition evaluates to TRUE.

Examples



   $nmdebug > var n 7
   $nmdebug > while n > 0 do {wl n; var n n-1}
   7
   6
   5
   4
   3
   2
   1

A simple while loop example.

   $nmdebug > while [pc] >> $10 <> $2000 do ss

Single step until the next Pascal/XL statement number.

Limitations, Restrictions


none




WHELP


XL