Boriel Basic Forum
ELSEIF bug (*solved*) - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15)
+---- Thread: ELSEIF bug (*solved*) (/showthread.php?tid=688)



ELSEIF bug (*solved*) - einar - 2015-07-31

Try running this program:

Code:
DIM h AS UBYTE

    LET h=10
    IF h=12 THEN
    ELSEIF h=10 THEN
        LET h=h+1
    END IF

    PRINT h

It was supposed to print 11, but it will print 10 instead.


Re: ELSEIF bug - boriel - 2015-08-01

Yes, it was a bug (and a nasty one!). Thanks. :roll:
Can you download ZX BASIC 1.4.0-s1935 and check if it works now, please??


Re: ELSEIF bug - einar - 2015-08-03

It works now, thank you!!!