I'm working on a bit of code that is going to communicate with a beamer. I can ask what the current selected input is and will then get a reply in the form of:
RG1
RG2
VID
etc...
Now I can make a long list of if statements that check against all possible reply but I already have all these replies in a list cause I use the same commands to set the input. What would be a good way of checking if the reply string against that list?