Hi Brannon,
you wrote:
>I can't seem to do anything which allows a loop to keep asking for a word
>until the user inputs the right word.
[snip]
>name: ask "What is your name? "
>guess: ask "What is the secret word? "
>
>
>while [not equal? guess secret-word]
> [ print "Wrong loser. Try again."
> unset 'guess
> ]
guess: func [] [ask "What is the secret word? "]
while [not equal? guess secret-word] [ print "Wrong ..." ]
You definitely do not want to unset guess, otherwise guess will no longer
be defined and the while loop will be interrupted with an error message,
claiming that guess is unknown!
Hope this helps,
Elan