question

Sandeep Kumar I avatar image
0 Likes"
Sandeep Kumar I asked Sandeep Kumar I commented

Reading number of tokens in a zone

Dear FlexSIM users,

I am trying to read the number of tokens in a zone to define a condition in "Decide". Please help with the command for reading the token count in a zone.

Best,
Sandeep

FlexSim 19.2.1
processflowzone
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

Regan Blackett avatar image
0 Likes"
Regan Blackett answered Sandeep Kumar I commented

You can use this:

getstat(getactivity(processFlow, "YourZoneName"), "Content", STAT_CURRENT)

Also, if you'd rather there is an option for Assign Labels that will also help you get this value and store it in a Label. You could do that prior to your decide rather than worrying about how the getstat() command works.

· 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.

Sandeep Kumar I avatar image Sandeep Kumar I commented ·

@Regan Blackett Thanks for your answer. This totally helps.

0 Likes 0 ·