# stop

### stop("message for log file")

Stop the profile and write a message to the log file.

## Arguments

Argument | Data Type | Description
message | string | Message to write to the log file (if logging is enabled)

## Returns

Nothing.

## Description

This function allows you to stop execution of the profile that is currently running. This will often be used in conjunction with the exec() function; if the exec fails, you can force the profile to terminate rather than continue with bad data. For example:

> iif((exec("myProgram.exe") <> 0), stop("External app failed"), log("External app OK"))

## Examples

Example | Returns | Description
stop("Kill the job") | Nothing | Stop the profile and write to the log file

## See Also

exec(), execasync(), log()