Assembly Language Help (alang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Generate Error If Argument Is Zero/Nonzero
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Syntax: .ERRE expression [,message]
.ERRNZ expression [,message]
See also: IF, IFE, .ERR, .ERRB, .ERRDEF, .ERRDIF
Description:
Tests value of <expression> and generates an error depending on
the resulting value. The .ERRE directive generates an A2053 error
if <expression> evaluates to false (zero). .ERRNZ generates an
A2054 error if <expression> evaluates to true (nonzero). If
<message> is given, it will be displayed with the standard
assembler error message.
Parameter Description
expression Expression that evaluates to true, false, or a
numeric constant. The expression cannot contain
forward references.
message Programmer-supplied error message, any text item.
See: ◄textitem►
-♦-