quit (string Text): int

Terminates or aborts the session or simulation cycle, and prints the text to the message window.

Returns

1 if Text begins with '!' or '#', otherwise 0.

Remarks:

Example:

if(Equity < 100)
  return quit("!Out of money!");

See also:

printf, run, wait, version, ExitCode

► latest version online