fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,40 @@
---
title: If Else Statement
---
# If Else Statement
The If-Else statement executes a block of code depending on whether your precondition is fullfilled or not.
## Example
```
if(boolean expression)
{
// execute this code block if expression evalutes to true
}
else
{
// always execute this code block when above if expression is false
}
int Price = 30;
If (Price = 30)
{
Console.WriteLine("Price is equal to 30.");
}
Else
{
Console.WriteLine("Price is not equal to 30.");
}
```
Since we already declared our int Price to be 30, this will be the expected output.
## Output
```
Price is equal to 30.
```