Code:
//var -s %word1 = a, %word2 = b, %string = %word1 $+ %word2


works.. in fact everything you mentioned sounds fine. you sure %word1 and %word2 contain values?


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde