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.
|
||
|---|---|---|
| .. | ||
| errors | ||
| features | ||
| assign_to_read_only_property.gd | ||
| assign_to_read_only_property.out | ||
| assign_to_read_only_property_with_variable_index.gd | ||
| assign_to_read_only_property_with_variable_index.out | ||