FlexSim Knowledge Base
Announcements, articles, and guides to help you take your simulations to the next level.

Switch by Case in Process Flow

Contributed by:

"switch by case" is a stucture in many programming languages. It is a availbale in Flexscript. A case must be a number for a switch by case structure in Flexscript. A decide activity can switch even to string value cases. All you need is to rename the connector from a decision activity to a following activity. by-case.jpgprocess_flow_by_case.fsm

Attachments
Comments

Note that in version 22.2 the "Connector by Case" template's test value is variant, as it no longer uses the switch function.