Splicer 10 Posted February 8, 2010 Hi there, In order to create several markers in a script using a while-do loop I need to figure out how to concatenate text with numbers. Example: _i = 0 _i = _i +1 markername + _i the last line to give the text string: markername1 And then when the loop goes another round then a text string: markername2 And so on... So how can one merge text characters with numbers in a loop? Thanks for all you help in advance. Best, Splicer. Share this post Link to post Share on other sites
Defunkt 431 Posted February 8, 2010 _markername = Format ["marker_%1", _i]; Share this post Link to post Share on other sites
Big Dawg KS 6 Posted February 8, 2010 Or markername + str _i But format is generally more useful. Share this post Link to post Share on other sites
Splicer 10 Posted February 8, 2010 Thank you so much guys!!!! :notworthy: Best, Splicer. Share this post Link to post Share on other sites