Hey, "match" "switch" who cares what you call it, right? This is what I need to know. Thanks for clarifying.
How to cascade multiple cases for the same execution?? - so or like leaving out the breaks in Java like languages?
EDIT: JUST DUG DEEPER AND ANSWERED MY OWN QUESTION>>>>>
You can also specify multiple patterns separated by a comma. These patterns aren’t allowed to have any bindings in them.
1, 2, 3:
print("It's 1 - 3")
"Sword", "Splash potion", "Fist":
print("Yep, you've taken damage")
--Also if anyone wants to redirect me to a newer thread thats fine. But this thread always comes up the 10 other times I googled "godot match statement" recently trying to remember how to do it. So I thought it might as well need to be addressed better here, seeing that the google algorithm seems to favor it.