I am using the following codes in Flow tab of a Separator. Port 1,2,and 3 are connected to 3 racks.
While the first IF condition sends item 9 to port 2, the second one does not send the item 8 to port 3. It keep sending it to port 1. I ran the model long enough to make sure the condition >=5 is met. Is there anything wrong with these codes? Thanks
if(content(outobject(current,1)) >= 5&& getitemtype(item)==9) {return 2;if(content(outobject(current,1)) >= 5&& getitemtype(item)==8) {return 3;} else {return 1;}}