Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

switch case godot

# 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 by docs.godotengine.org #
 
PREVIOUS NEXT
Tagged: #switch #case #godot
ADD COMMENT
Topic
Name
7+1 =