question

Nathan S7 avatar image
0 Likes"
Nathan S7 asked Jason Lightfoot edited

How do I iterate through the tokens within a list?

I have several lists with tokens going between them, and depending on their movements, I track how much time they spend in a particular state. I would like to iterate through all the lists at the end of the model run and report what their token value in a table. Is there a command to easily iterate through a list/treat it like an array?

Thanks!

FlexSim 22.1.2
list
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Yes pull from it with a required quantity of zero to get all the items on the list as an array (for a given partition)

If it's a global list you can query it using Table.query().

EverythingOnLists.fsm


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Nathan S7 avatar image Nathan S7 commented ·
Is there a custom code command I can use for that pull?
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.