Forum
ELSEIF bug (*solved*) - Printable Version

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



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

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 - 07-31-2015

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 - 08-03-2015

It works now, thank you!!!