article

Paul Toone avatar image
0 Likes"
Paul Toone posted

The Condition Field   

Nearly all of the Behaviors available for Decision Points and Photo Eyes have a Condition field. The Condition field allows you to customize the criteria that causes a Behavior to start. The Condition field is a boolean value in which true (non-zero) tells it to perform the Behavior, while false (zero) will cause the Behavior not to be executed.

The following image shows an example of the Condition field for the Send Item Behavior:

Click the drop-down menu on the right for suggestions on values to use. Possible expressions may be:

  • true - The behavior will always be executed.
  • getitemtype(item) == 1: The behavior will be executed if the item's itemtype value is equal to 1.
  • getlabel(item, "DivertLane") == 1: The behavior will be executed if the item's "DivertLane" label value is equal to 1.
  • getlabel(item, "Category") == getlabel(current, "Category"): The behavior will be executed if the item's "Category" label value is equal to the Decision Point/Photo Eye's "Category" label.
  • gettablenum("RoutingTable", 1, 1) == 1: Gets the value in row 1, column 1 of the global table named RoutingTable. If that value is 1, the behavior will be executed.

See Writing Logic in FlexSim for more information on building code expressions in FlexSim.

flexsim users manualusers manual
5 |100000

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

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1