I think you should not enclose
pick secret-words 1
in [ ] block symbols, but in parentheses.
Russell, [EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 11, 1999 8:14 PM
Subject: [REBOL] Pick is working. but for some reason the equal? is not
catched the equality...
> I know that pick secret-words 1 is choosing "camel" and I am typing
"camel"
> so I don't know why the first option of the either is not being chosen.
Some
> guru please help!!
>
> REBOL [
> Title: "More than one secret word"
> Date: 11-Oct-99
> Author: "T.M. Brannon"
> Email: [EMAIL PROTECTED]
> File: %more-than-one-word.r
> Purpose: {
> Play a guessing game
> }
> Category: [file script utility]
> ]
>
>
> secret-words: [ "camel" "llama" "oyster" ]
>
> name: ask "What is your name? "
> guess: ask "What is the secret word? "
>
> either equal? name "Randal"
> [ print "Hi Randal! No secret word required. You're the greatest!" ]
> [ print ["Hello" name "." ]
> either (equal? guess [pick secret-words 1])
> [ print "That's it!!!! You got it!!!" ]
> [ print "Wrong loser." ]]
>
>
>
>