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." ]]