Can't get this switch / case sketch to work. Any ideas?

Still no joy : / thanks for the help anyway guys : ) is there an easier way to achieve a switch case within a switch case only using two inputs?