From your post, it's unclear what you are checking, and what you 
assigning, but I'll give you a general idea using a Lingo list 
(untested):

on BuildString theEndingWord, theWordListIn
    stringOut = ""
    repeat with thisWord in theWordListIn
       if thisWord = "yes" then
          stringOut = stringOut & "1"
       else
          stringOut = stringOut & "0"
       end if
    end repeat
    stringOut = stringOut & theEndingWord
    return stringOut
end


And you would call it like this:

   someVariable = BuildString("help", ["yes", "no", "yes", ... ])

Or if you already have your data in global variables and want to keep 
it that way:

   someVariable = BuildString("help", [toto, toto2, toto3, ...  ]]

Irv


At 1:56 PM -0400 7/25/01, Dominic Villiard wrote:
>how can i put the expression of 6 different variable before aand other
>expression
>
>for example :
>
>global a, b, c, d, e
>
>word = hello
>
>if toto = "yes" then
>a = 1
>else
>a = 0
>
>if toto2 = "yes" then
>b =  1
>else
>b = 2
>

-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to