How do I use STOP Statement?

Terminates the current replication and optionally displays a message. The simulation will then continue with the next replication. Use STOP to end a replication when a user-defined condition becomes true.


STOP [<“ text string” >]
STOP “Normal termination”

text string An optional message to display when the replication stops.


The example below uses a STOP statement to terminate the simulation whenever the variable v_Total_Complete reaches 100.

INC v_Total_Complete
IF v_Total_Complete = 100 THEN


Logic Statements:

Was this article helpful?

Related Articles