Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 930 Bytes

dot-if.md

File metadata and controls

39 lines (34 loc) · 930 Bytes
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
.IF | Microsoft Docs
11/04/2016
cpp-tools
article
.IF
C++
.IF directive
dccc7615-8fc7-4829-9f39-0ee405f6c1e3
7
corob-msft
corob
ghogen

.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