[SOLVED] A good way to compress nested "if else" statements?

ok, so i spent some time implementing this, and it worked perfectly. it does exactly what we wanted it to do. thank you so much!!