UBI EasyCoder 201 IIE Manuel d'instructions Page 120

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 332
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 331 332

Commentaires sur ces manuels

Pas de commentaire