Instead of things like toto1 and toto2 you should try using lists, but that 
aside, you want to concatenate using the ampersand &, so make an empty 
string, then append on the parts you want, and at the very end put out the 
variable.


outText =""
if (whatever) then
   outText =outText & "1"
end if

if (whateverElse) then
   outText =outText & "2"
end if

outText =outText & "hello"

put outText
-- 12Hello


At 01:56 PM 7/25/01 -0400, 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
>
>....... and so on...
>
>now i want to put all the global in a string before the variable "word"
>so at the end i have something like "11010hello"
>
>there must be a simple way to do this...
>thanx
>
>
>
>[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!]


[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