UBI EasyCoder 201 IIE Bedienerhandbuch Seite 120

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 332
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 119
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7118
Chapter 2 Program Instructions
IF...THEN...(ELSE), cont.
Examples, cont.
IF ... THEN are often used in connection with GOTO. In this example, line
numbering is used. Also see the example for the GOTO statement.
10 A%=100
20 B%=50
30 IF A%=B% THEN GOTO 50 ELSE PRINT "NOT EQUAL"
40 END
50 PRINT "EQUAL":END
RUN
yields:
NOT EQUAL
This example correspond to the preceding example, but line labels are
used instead of line numbers.
IMMEDIATE OFF
A%=100
B%=50
IF A%=B% THEN GOTO QQQ ELSE PRINT "NOT EQUAL"
END
QQQ: PRINT "EQUAL":END
IMMEDIATE ON
RUN
yields:
NOT EQUAL
Seitenansicht 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 331 332

Kommentare zu diesen Handbüchern

Keine Kommentare