Please help some basic switch code not working?

ok thanks