FAQ  •  Register  •  Login

ELSEIF bug (*solved*)

<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Fri Jul 31, 2015 3:52 am

ELSEIF bug (*solved*)

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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Jul 31, 2015 11:59 pm

Re: ELSEIF bug

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??
<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Mon Aug 03, 2015 3:52 am

Re: ELSEIF bug

It works now, thank you!!!

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO