@OK

Top  Previous  Next

Syntax:

 

@OK()

 

Description:

 

This function is used to test the status of the OK indicator, which is set to false when a non-fatal error occurs during execution of a DialogScript command or function. It returns 1 (true) if OK is true, otherwise the function returns null (false).

 

OK:

 

Unchanged.

 

Example:

 

IF @OK()

  REM Do something useful

ELSE

  WARN Operation failed!

END