if statement c# example
Example: c# if
int x;
int y;
if ( x == y)
{
Console.WriteLine("x and y is equal");
}
else
{
Console.WriteLine("x and y is not equal");
}
// Same, but shorter ( and harder XD )
Console.WriteLine($"x and y {(x == y? "is equal" : "is not equal")}");