Looks like you should use an if/elseif/else comparison, and a loop to check for multiple channels.