question

Kari Payton avatar image
0 Likes"
Kari Payton asked Kari Payton commented

Error exiting conditional decide.

I am using the following statement on a conditional decide:

getlabel(token, "machinesNeeded")  >= getlabel(token, "OpNum")

I have two operators.

There is only one machine needed. One operator should go out of connector one and the other out of connector 2. The issue is that both operators are exiting out of connector one. Any ideas why this is happening?

FlexSim 16.1.2
conditional decide
decideerror2.png (10.5 KiB)
decideerror.png (7.2 KiB)
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

Matt Long avatar image
1 Like"
Matt Long answered Kari Payton commented

The result of your conditional statement is either a 1 or 0. Both of these have the same effect in Process Flow and cause the tokens to exit out connector 1. This is because there is no such thing as "First Available" in Process Flow.

What you want to be using is the pick option 'Conditional Decide' where you can specify which connector to exit based upon your conditional statement:


· 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.

Kari Payton avatar image Kari Payton commented ·

Ah I see. I thought that's what I was using but I hadn't actually set it to doncitional decide before I typed the statement in. Thanks!

0 Likes 0 ·