Creating "Reveal Code" feature

I’m trying to build a simple user input form that tests whether a code submitted by a user is a “winner” or not. Can anyone provide any guidance? Thanks ahead of time!