Using Switch in a If if condition

what does dont work mean?