Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
When using a list, is there a way to turn the element number I am on into a string?
Old
louisk
Junior Member
 
Status: Offline
Posts: 3
Join Date: Jul 2012
Location: Bellevue, WA
Default When using a list, is there a way to turn the element number I am on into a string? - 07-23-2012, 05:03 PM

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?
   
Reply With Quote
Use the A joined with B function
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default Use the A joined with B function - 07-23-2012, 10:49 PM

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.


[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.
   
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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