IF instruction doesn't work?
Posted: Sat Dec 15, 2007 7:40 am
I have this piece of code. When I input equal values for CLO(I) and CL(I)
the program recognizes them as CLO(I) > CL(I). I tried many other options and they didn't work. I removed the line 1280 and the application doesn't make the calculations. Any help? What I am doing wrong?
This an adapted code from GWBASIC.
Thanks a lot
1260 FOR I = 1 TO NTR
1270 PRINT "Tube "; I; ": Q(l/s),L(m),h(M) "; : INPUT Q2(I), CL(I), CLO(I)
1280 IF (CLO(I) > CL(I)) THEN
1282 GOTO 1270
1284 END IF
1290 NEXT I
1340 PRINT "I am calculating. Wait a moment please"
1350 ....( calculating)
the program recognizes them as CLO(I) > CL(I). I tried many other options and they didn't work. I removed the line 1280 and the application doesn't make the calculations. Any help? What I am doing wrong?
This an adapted code from GWBASIC.
Thanks a lot
1260 FOR I = 1 TO NTR
1270 PRINT "Tube "; I; ": Q(l/s),L(m),h(M) "; : INPUT Q2(I), CL(I), CLO(I)
1280 IF (CLO(I) > CL(I)) THEN
1282 GOTO 1270
1284 END IF
1290 NEXT I
1340 PRINT "I am calculating. Wait a moment please"
1350 ....( calculating)