question

Jay Khedekar avatar image
0 Likes"
Jay Khedekar asked Andrew O commented

What should be the return value for Wait for an Event custom FlexScript Code?

I have written a flexscript code to wait if the queue length is betweel 0 and 2. If that's true I return 1?


Is returning 1 the eight way to do it?


  1. if(model.find("Queue1").subnodes.length >=0 && model.find("Queue1").subnodes.length <2){
  2. return 1;
  3. }
FlexSim 21.1.5
flexscriptwaitforevent
· 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.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Just use the gui:

1662065853241.png


1662065853241.png (12.6 KiB)
· 4
5 |100000

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