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