IsOK method

Tests the error code.

 Syntax
 Returns