Matrix1 Utility Plug-ins

ASSERT ERROR


Syntax

ASSERT ERROR Condition, ErrorMessage$
ASSERT ERROR Condition, ErrorMessage$, ErrorTitle$

Description

Raises a user-specified error if the condition evaluates to 'false'.

This command works identically to the REPORT ERROR command, with the exception that the error will only be raised if the Condition evaluates to a 'false' result. This effectively means that any comparison or flag that results in a zero integer value will trigger the raising of the error.

Those familiar with C and C++ will recognise this as a standard system of ensuring that correct and valid values are provided to your code.

Go back to ...

Matrix1Util_06 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011