Select Maximum Label in Object

Quickly search all the work items in a simulation object to select one with the highest numerical label value. It becomes the Current Work Item. The maximum value is also returned.


  • The simulation object to search. Can also be text that is the name of a Simul8 Group of simulation objects.
  • The label that contains the numerical values
  • A data item to received the returned maximum value

If no work items are found Current Work Item is set to 0.
This is faster than writing Visual Logic that loops along the objects's work items selecting each and checking label values.

See Also