using password to unlock

How do I unlock by a password that the player should write?

ask("What is the password?")
if{result="Password", unlock door}

Or something like that...

Have a lok here in the Looking for a Specific Answer section:

This topic is now closed. Topics are closed after 60 days of inactivity.