Question : switch case godot
Answered by : crazy-caracal-5i18bhpw6pei
# There's no actually switch case, but match, that too good.
match x: 1: print("We are number one!") 2: print("Two are better than one!") "test": print("Oh snap! It's a string!")
Source : https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_basics.html#match | Last Update : Mon, 21 Mar 22