question

Fred E avatar image
0 Likes"
Fred E asked Fred E commented

How to not push specific type to the global list

Hello,

is it possible to write a condition where Type 5 is not pushed to the global list "Load Type is not 5"?

1659337876931.png

I push tokens to the global list when items arrived at Queue 2.

1659337737623.png

I can't upload my model right now because there is something wrong with the forum.

I will upload a model as soon as the forum starts working correctly.



Thank you in advance for your answers.

Best regards.

FlexSim 21.2.4
queuepush to listglobal lis
1659337737623.png (202.4 KiB)
1659337876931.png (9.7 KiB)
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Fred E commented

1659341324280.png

'!=' is the syntax for "not equal".

If you want to handle the Type 5-items in some other way (sending them through a port connection), you would have to manually edit the 'Send to Port' port to adjust the respective return values.


1659341324280.png (6.6 KiB)
· 3
5 |100000

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

Fred E avatar image Fred E commented ·

Is it possible to push two different types from one queue to a separate global list? For example, Type 1 to ItemList1 and type 5 to ItemList2.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Fred E commented ·

Yes, but you have to manually edit the 'Send to Port' code for this. Copy the default code of the 'Push to List' option, then fill in the if-conditions and adjust the list names.

1659364376190.png

1 Like 1 ·
1659364376190.png (19.5 KiB)
Fred E avatar image Fred E Felix Möhlmann commented ·

Thank you.

0 Likes 0 ·