Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   When using a list, is there a way to turn the element number I am on into a string? (http://www.alice.org/community/showthread.php?t=9390)

louisk 07-23-2012 05:03 PM

When using a list, is there a way to turn the element number I am on into a string?
 
So, I am iterating through a list with a For all in order construct....
I want to be able to have each object say "Unit x ready" where x represents the element number in the list (+1 obviously to account for a start of 0).

Is there an easy way to do this?

GameKid 07-23-2012 10:49 PM

Use the A joined with B function
 
Yes, yes there is an easy way. So,
For all in order [Your variable]
[Unit ] joined with [Your variable] joined with [ ready]
The A joined with B function can be found under string functions in world functions. Tell me if you don't understand.


All times are GMT -5. The time now is 05:23 PM.

Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.