question

sara S2 avatar image
0 Likes"
sara S2 asked tannerp commented

The condition "a conveyor is empty and a queue is empty" in "Decide" activity ?

Hello,

How to set the condition "a conveyor is empty and a queue is empty" in "Decide" activity ?

(FlexSim version 19.0.0)

Regards.


Other
Other (please specify)
process flowdecide activity
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

tannerp avatar image
0 Likes"
tannerp answered tannerp commented
  1. Object MyConveyor = Model.find("Conveyor"); //Change to name of Conveyor
  2. Object MyQueue = Model.find("Queue"); //Change to name of Queue
  3.  
  4. if(MyConveyor.subnodes.length == 0 && MyQueue.subnodes.length == 0) {
  5. return 1;
  6. }
· 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.