Need help with conditional DI/O and using Serial monitor to set conditions

Thank you very much Magician. I played around with Serial.available() a little bit with a switch case, but I haven't looked into it with any detail. I'll work on it and post the updated code if I make progress.