Is there any way to simulate a goto statement in GDScript? I have some pure c sources of game logic, which is decompiled from pure asm to c, full of goto statements, and is near-to-impossible to fold back to switch/if/else. If not now, maybe a future plans of GDScript?
GDScript goto statement
And why are you dealing with de-compiled code? Doing anything nefarious/copyright infringing? If not, I have to wonder why you couldn't get access to the original source instead. Either ways, perhaps yield might come in handy to solve your, lets say, academic problem.
If you are using goto statements, probably means something is wrong with your design. Also, you probably don't want to decompile other people's code as there are legal and ethical concerns there.
3 years later
Megalomaniak added the Godot Help tag .