Please enable JavaScript to view this site.

Vensim Help

Sets what a command script does when a command fails. It applies only to command scripts.

•With n = 0 the script stops at the failed command, and Vensim stays open.

•With n = 1 the script skips the failed command and carries on.

•With n = 2 the script stops at the failed command, and Vensim exits with a nonzero exit code, as with MENU>EXIT.

The default is 2 for a script named on the command line when Vensim is started, so a batch job can test the exit code. Otherwise it is 0.