question

Tzu Hsuan C avatar image
0 Likes"
Tzu Hsuan C asked Eric M commented

When to use "Values by case" and "by Expression" ?

I'm a beginner in FlexSim. I got confused when setting Processor properties.

I would like to know that what's the difference between "Values by case" and "by Expression" ?

When will each of them be used ?

FlexSim 21.1.2
processorflexsim 21.1.2properties
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

Eric M avatar image
1 Like"
Eric M answered Eric M commented

Hi @Tzu Hsuan C, they are similar in some cases and can be interchangeable at times. 'by Expression' is more limited in that whatever your expression is has to match up with the number of ports you have. For example, if you had a label called type on the items that ranged from 1-3, you could use the expression 'item.type' to send the item to 3 output ports and they would follow the number on type (type 1 would go to output port 1, 2 to port 2, etc.).

'Values by case' takes a little more time to set up, but is more flexible. Let's say you had a label with sku numbers that you wanted to send to certain ports. 'Values by case' allows you to choose which sku number goes to which port regardless of whether or not the numbers match up. So a sku of 18653 could be sent to any port of your choosing whereas 'by Expression' would want to send that item to port 18653 (which would be bad).

· 2
5 |100000

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