Switch definitely wasn't intended to operate this way, but you can:
"foo" switch = AA
(AA, foo=# case 'foo' here... print('foo'), bar=# case 'bar' here... print('bar'), print('default') )...each case is an expression - normally just a simple thing, but here I use a curly-block so you can jam any code you want in there.