Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>if initiate conditional block directive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
IF               Initiate Conditional Block                         Directive

  IF expression
  statements
  [ELSE
  statements]
  ENDIF

    Initiates a conditional block, causing the assembly of statements up
    to the optional ELSE directive, provided that expression is true
    (evaluates to a nonzero value).

       Notes:     IF directives may be nested to 255 levels.

                  The statements following IF and ELSE can be other IF
                  conditional blocks.

                  If the condition if false (evaluates to a zero value)
                  and an ELSE directive is included, the statements
                  between the ELSE and ENDIF will be assembled.

                  A nested ELSE directive is matched with the nearest IF
                  directive that does not have an ELSE directive.

                  The expression for the IFE directive must resolve to an
                  absolute value and must not be a forward reference.

See Also: IFE ELSE ENDIF

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson