Using the goto function

Hi,

Can goto be used with Basic?

Thanks

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:
https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf

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.