The indentation is broken, and I don't see an else clause - Use WHEN.