ASSERT
is used in sensitive areas where you want to be absolutely sure, that a variable has a specific value. If the logical condition after ASSERT
turns out to be false, an unhandleable exception (ASSERTION_FAILED
) is thrown.
ASSERT 1 = 1. "No Problem - Program continues
ASSERT 1 = 2. "ERROR