How can I check for a predeterminded code match?