question

mfrsagfm avatar image
0 Likes"
mfrsagfm asked Allister Wilson edited

How do I reference the number of entries in a partition of a list w/ FlexScript?

I know I can reference the number of entries on a list using the following code:

int entriesOnList = List("List1").entries().length > 0 ? 1 : 0;

How can I reference the number of entries on this list in a specific partition? For example, the number of entries in List1 that are in partition 1?

FlexSim 24.1.1
listcodepartitionsentries
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

Allister Wilson avatar image
1 Like"
Allister Wilson answered Allister Wilson edited

List.entries accepts a parameter specifying the partition, you're not providing a value explicitly so it's just getting the entries for the default partition : List.entries (manual)

5 |100000

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