IFC in C# code example
Example 1: 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")}");
Example 2: if statement c#
if (condition)
{
print("Yes");
}
else
{
print("No");
}