Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.12 KB

File metadata and controls

27 lines (24 loc) · 1.12 KB
Error in user YAML: (<unknown>): did not find expected ',' or ']' while parsing a flow sequence at line 10 column 22
---
title: "Selection Statements (C++) | Microsoft Docs"
ms.custom: ""
ms.date: "11/04/2016"
ms.reviewer: ""
ms.suite: ""
ms.technology: ["cpp-language"]
ms.tgt_pltfrm: ""
ms.topic: "index-page "
dev_langs: ["C++"]
helpviewer_keywords: ["[""selection statements [C++], syntax"", ""selection statements [C++]""]"]
ms.assetid: 2ce662fc-5e62-461b-ac31-2c159d8ef33b
caps.latest.revision: 6
author: "mikeblome"
ms.author: "mblome"
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"]
---

Selection Statements (C++)

The C++ selection statements, if and switch, provide a means to conditionally execute sections of code.

The __if_exists and __if_not_exists statements allow you to conditionally include code depending on the existence of a symbol.

See the individual topics for the syntax for each statement.

See Also

Overview of C++ Statements