LANGUAGE
if and else
Selects a statement or block according to a bool. Use braces and explicit ordering of overlapping conditions.
Formal Syntax & Structure
csharp syntaxcsharp
if (condition) { ... } else { ... }Working Example
Example Snippetcsharp
int n = 60; if (n >= 60) { System.Console.WriteLine("Pass"); }