| description | Learn more about: .IF (32-bit MASM) | |
|---|---|---|
| title | .IF | |
| ms.date | 11/05/2019 | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | dccc7615-8fc7-4829-9f39-0ee405f6c1e3 |
Generates code that tests condition1 (for example, AX > 7) and executes the statements if that condition is true. (32-bit MASM only.)
.IF condition1
statements
⟦.ELSEIF condition2
statements⟧
⟦.ELSE
statements⟧
.ENDIF
If a .ELSE follows, its statements are executed if the original condition was false. Note that the conditions are evaluated at run time.