Skip to content

Latest commit

 

History

History
57 lines (52 loc) · 1.1 KB

File metadata and controls

57 lines (52 loc) · 1.1 KB
title .IF | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
.IF
dev_langs
C++
helpviewer_keywords
.IF directive
ms.assetid dccc7615-8fc7-4829-9f39-0ee405f6c1e3
caps.latest.revision 7
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

.IF

Generates code that tests condition1 (for example, AX > 7) and executes the statements if that condition is true.

Syntax

  
   .IF condition1   
statements  
[[.ELSEIF condition2   
   statements]]  
[[.ELSE  
   statements]]  
.ENDIF  

Remarks

If a .ELSE follows, its statements are executed if the original condition was false. Note that the conditions are evaluated at run time.

See Also

Directives Reference