Get items in list in the order they are in the list

wahmpire

  • Posts: 81
Im creating actors from an ordered list... but when I do a "for each item in list" to create the actors it creates them out of order.  It does always create them in the same order, just not in the order they are in the list.  So instead of getting 1,2,3,4,5,6,7 I'm getting something like 3,5,1,2,7,6,4

Bhoopalan

  • Posts: 1019
You don't have to use 'for each item'. There's a block called 'get item [itemNumber] from the list [ListName]'.

Set an attribute whose initial value is 0 and increment it in a loop. You should then add this attribute to [itemNumber] in that get item block.
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

wahmpire

  • Posts: 81
That's perfect, thank you!

Bhoopalan

  • Posts: 1019
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan