godot exit function code example
Example: godot exit func
# Use "return"
func _ready():
if some_condition:
print("true")
else:
return # breaks execution of the entire function
print("test")
# Use "return"
func _ready():
if some_condition:
print("true")
else:
return # breaks execution of the entire function
print("test")