Touchdesigner is using Python 3.7 and in 3.1 the match statement was introduced. I cannot however get It working.
Consider this example
mycolor = 'Blue' match mycolor.lower(): case 'blue': print('Blue sea') case 'green': print('Green valley') case 'yellow': print('Yellow sun') case _: print('could not guess')
I get syntax error: invalid syntax