In the program below, the print stmt: print join "Hello" name
does not occur until after the 2nd ask even though it is coded before the
2nd ask

REBOL [
    Title:  "Guessing the secret word"
    Date:   11-Oct-99
    Author: "T.M. Brannon"
    Email:  [EMAIL PROTECTED]
    File:   %guessing-word.r
    Purpose:    {
        Play a guessing game
    }
    Category: [file script utility]
]


secret-word: "llama"

name:  ask "What is your name? "
guess: ask "What is the secret word? "

either equal? name "Randal"
 [ print "Hi Randal! How good of you to be here!" ]
 [ print join "Hello " name "."                   ]

either equal? guess secret-word
 [ print "That's it!!!! You got it!!!" ]
 [ print "You loser. That's just not right." ]

Reply via email to