Page 1 of 1

Control of flow in Spiderbasic

Posted: Fri Dec 11, 2015 12:10 am
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?

Re: Control of flow in Spiderbasic

Posted: Fri Dec 11, 2015 8:08 am
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.