set i = 1 set result = "" while i <= 10 set result = result . i if i < 10 set result = result . ", " end if set i = i + 1 end while echo result