Using the goto function



Can goto be used with Basic?



No GOTO statement. AppStudio BASIC is based on Visual BASIC, which also does not have it.

Here is the paper which first identified GOTO as harmful, by Edgar Dijkstra in 1968:


Visual Basic has a GOTO statement. I use it all the time.


You’re right - I should have been more specific and said VBScript.

AppStudio works by translating BASIC to JavaScript. It’s a 1-1 translation in nearly all cases, so there is no performance hit. JavaScript does not have a GOTO statement.


That makes more sense :slight_smile: Truth is you really shouldn’t use GOTO anyway, but I just find it to be a really nice time saver when writing code that doesn’t need to be well optimized.