Russ (a very fast guru wrote):
> Putting [] around the second argument of 'equal? is making it into a
block, while the first argument ('guess) is type string! Simply leave
out the [ ] or use () to force precedence when needed (not needed
here).
Or like this:
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? "
either equal? name "Randal" [
print "Hi Randal! No secret word required. You're the greatest!"
][
print ["Hello" name "." ]
]
guess: ask "What is the secret word? "
either equal? guess pick secret-words 1 [
print "That's it!!!! You got it!!!"
][
print "Sorry, that's wrong."
]
; End.
I hope that helps. Be sure to look at where the 'guess word is
placed...
Andrew Martin
[EMAIL PROTECTED]
http://members.xoom.com/AndrewMartin/
Online @ 33,600 Baud!
-><-