Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Switches and random

From: izkata::aol::com at: 17-Feb-2002 14:24

I am making a welcome message type of script, and am wondering why this doesn't work: (Yes, I have to use switches, or something similar for my idea to work) word1: "" word2: "" word3: "" Word1: random/only ['I 'My 'Your] switch Word1 [ 'I [ Word2: random/only ['like 'hate] switch Word2 [ 'like [word3: random/only ['you]] 'hate [word3: random/only ['viruses]] ] ] 'My [Word2: random/only ["name is Tenryo"]] 'Your [word2: random/only ['boring]] ] Sentence: to-string append "" rejoin [Word1 " " word2 " " word3 "."] flash Sentence Daniel S.