Author Topic: Adding another string onto a var  (Read 709 times)

Say I have
Code: [Select]
for(%x = 0; %x < 16; %x++)
      %msg += %msg[%x];
I'm trying to make it so that %msg will equal to %msg0 %msg1 %msg2 ...etc (using the for loop)

Obviously it does not work. Yes, I'm fully aware that you cannot add strings together :/
The code I've displayed is merely a representation of what I was attempting to do.

String catenation (adding them together) is done with @, so you would have what you wrote but with an @ instead of the +.
There's also SPC for adding with a space between and TAB for a tab between them.

String catenation (adding them together) is done with @, so you would have what you wrote but with an @ instead of the +.
There's also SPC for adding with a space between and TAB for a tab between them.
Thank you.