Godot Version
4.3
Question
I was writing code and trying to use a match statement when checking again two values.
match item_id:
> other_item_id:
pass
== other_item_id:
pass
I get an error on both lines for Expected expression for match pattern, I was wondering if there is a way to write a match to handle code like this, or if I would have to use an If statement?
I know I could do if item_id > other_item_id and if item_id == other_item_id but would like to do match statements if possible as I prefer them for code readability and repetition reasons.
Thanks.