Well "switch .. case" is only available in A7 and Lite-C.
So if you save this file in the .wdl format you will have problems.
But I don't know what you are using.
Do you use Lite-C or C-Script?