I have attached my model with what I've managed to achieve so far.
Basically this is what I would like to do:
When Queue 4, Queue 3, Queue5, and Queue 6 are all at maximum content, I want to sink/destroy everything inside them.(Just clear out everything simply) This must all happen together at the same time once they're all full.
I've tried using the following code snippet from another post: https://answers.flexsim.com/questions/48787/how-to-use-script-to-destroy-all-or-certain-number.html
The problem is that is does work... but the batches from the previous connected queues (1 and 2) stop emptying themselves after the batch count is reached when the process flow is executed.
Is there something that I have done wrong? I would think it's something to do with the code snippet, or how the process flow itself is structured.
Kind regards,
Brandon