In a switch block, you don't actually write out a switch expression. You write an expression that returns a single value (such as a tag reference {path/to/tag} or other logic), and then add 'cases' to the switch block via the GUI. The switch block will run your expression once and then look up which case to enter based on the provided inputs.