I updated Gompl, the scripting language written in GDScript. It now supports function definitions, though not yet with parameters.

https://github.com/ratkingsminion/gompl

#Godot #GodotEngine

I repurposed the 'stop' keyword and now you can prematurely leave a Gompl function. And if you want to return a value, you can write 'stop with <value>'. This also works in 'while' loops. I don't know why but I really like this syntax.
My next big plan is to support arrays natively. No idea how, yet.
Had to fix recursion, so now this code works. It prints 2000, as expected.