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.

Syntax

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

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

Example

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

STOP

Logic Statements:

Was this article helpful?

Related Articles

Go to Top