1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-02 19:01:36 +00:00
Files
godot/modules/gdscript/tests/scripts/runtime/features
George Marques 54a1414500 GDScript: Implement pattern guards for match statement
Within a match statement, it is now possible to add guards in each
branch:

	var a = 0
	match a:
		0 when false: print("does not run")
		0 when true: print("but this does")

This allows more complex logic for deciding which branch to take.
2023-09-27 11:25:25 -03:00
..
2023-09-14 14:22:23 +03:00
2023-09-14 14:22:23 +03:00
2023-09-14 14:22:23 +03:00
2023-09-14 14:22:23 +03:00
2021-10-25 14:34:00 -03:00