Argox PA-20 Basic Programming Manual Bedienungsanleitung Seite 23

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 143
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 22
PT-Basic Programming Manual Ver. 1.00 22/143
WHILE WEND
Purpose
To repeat the execution of a block of statements while a
certain condition is TRUE.
Syntax
WHILE condition
[Statement Block]
WEND
Example
N%=1
WHILE 1
PRINT "Cnt=",N%
N%=N%+1
IF N%>5 THEN
EXIT
END IF
WEND
Description
If the condition is true, loop statements are executed until the
WEND statement is encountered. Then the program
execution returns to WHILE statement and checks the
condition again. If it is still true,the process will be repeated.
Otherwise the execution continues with the statement
following the WEND statement.
Seitenansicht 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 142 143

Kommentare zu diesen Handbüchern

Keine Kommentare