modify switch case sentence for smartpal
Merge pull request #242 from irvs/issue200

modify switch case sentence for smartpal