Control of flow in Spiderbasic

Just starting out? Need help? Post your questions and find answers here.
Elemee
Posts: 2
Joined: Wed Dec 02, 2015 5:57 pm

Control of flow in Spiderbasic

Post by Elemee »

It appears that the Gosub control structure is not implemented in Spiderbasic. Is there a summary somewhere of the various differences between coding in Purebasic and Spiderbasic that would help me in planning how to re-write my Basic code in Spiderbasic? If one wants to call a function or routine based on evaluating conditions in the program is using a Procedure the proper technique?
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: Control of flow in Spiderbasic

Post by Fred »

Yes, Gosub/Goto are not supported in SpiderBasic as Javascript doesn't support it either. It's not a bad thing, as it other leads to hard to maintain code, so using a procedure should achieve the same goal and will be compatiable with both PB and SB.
Post Reply