New games every week!
JSE - Or Else..! Blog
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 114, Upvotes 18  
Jse
New games every week!
Site credits : This was all done by Jayenkai
(c) Jayenkai 2023 and onwards, RSS feed 77

Blog - JSE - Or Else..! - AGameAWeek