Inform 7: How to setup 'Entering Secret Codes'

Hi there, I want to add an access panel to an IF game I am creating.
What I am trying to do is have the user type a secret code into an access panel and if the code is correct then the panel will open a gate and let the user pass.
Can somebody tell me how to code this ? I cannot find an example anywhere.
Thanks in advance.

Check out this thread – specifically Felix’s post four down from the top.

Thanks, that worked great.