Hi,
I've created a model where the 30% of the boxes are diverted at the green conveyor. However, I would like the boxes when diverted to divert 3 at a time. I've added a code to the decision point as shown in the image.
My code is as follows:
The idea is to see if the label (direction) is for that 30% divert and then make the items behind it all have the same direction using a for loop. However, It doesn't seem to be working.
switch (item.Direction) { case 1: { for (int index = 1; index <= 3; index++) { item.next.labels[item.Direction].value =1; break; } break; } case 2: { item.Direction=2; break; } }
Any help would be appreciated. Thank you