How to use case statement commands