TSC AUTO ID Technology Co., Ltd. 136 Copyright 2013 All Rights Reserved.
...
ELSEIF condition n THEN
Statement block n
ENDIF
*The syntax of IF…THEN…ELSE requires that the command be typed in one single line in less than 255
characters.
Available relational operator: <, >, =, <=, >=, <>
*Relational operator <>, not equal, was supported since V5.10 EZ.
Only one statement is available in
Example
DOWNLOAD "DEMO.BAS"
SIZE 4,4
GAP 0,0
DIRECTION 1
CLS
A=0
B=0
C=0
D=0
E=0
F=0
G=0
H=0
J=0
K=0
L=0
FOR I=1 TO 100
IF I-INT(I/1)*1=0 THEN A=A+I
IF I-INT(I/2)*2=1 THEN B=B+I ELSE C=C+I
IF I-INT(I/3)*3=0 THEN
D=D+I
ENDIF
IF I-INT(I/5)*5=0 THEN
E=E+I
ELSE
F=F+I
ENDIF
IF I-INT(I/7)*7=0 THEN
G=G+I
ELSEIF I-INT(I/17)*17=0 THEN
H=H+I
ELSEIF I-INT(I/27)*27=0 THEN
J=J+I
ELSEIF I-INT(I/37)*37=0 THEN
K=K+I
ELSE
L=L+I
ENDIF