Switch Case ipv If Then

And what leads you to believe that digitalWrite "doesn't work" within a case? What does "doesn't work" mean precisely in this case? What undesired behavior are you actually seeing?