New games every week!
JSE - Or Else..!
13th May 2021  
Two things..

-=-=-

for n=1 to 5 if n==4 then Print "Number 4" else print n endif next print for n=1 to 5 if n==4 then Print "Number 4" ;else;print n next print for n=1 to 5 if n==4 then Print "Number 4" else print n next


1. For Next!
Hurray!!
It mostly work. Don't try to confuse it!!

2. Else.
Else works, but .. again, try not to confuse it!

Note in the above example, the lower of the three tests doesn't have line markers around the else, so it gets baffled and breaks a bit. Hopefully I can fix that in time.
I also need to rejig the way if's actually function to make them a little quicker. Right now.. .. Not so much!!

For now, it works "enough", and the For's seem to be functioning ok, too.

Views 71, Upvotes 5
Jse
New games every week!
Site credits : PHP script, Blog posts, Games, Music, Pixelart, Poems and More : Jayenkai
(c) Jayenkai 2017 and onwards, site design Rychan. RSS feed
Blog - JSE - Or Else..! - AGameAWeek