c# if or condition code example
Example 1: if statement conditions c#
int myVar = 0;
if (myVar > 3)
{
//do code
}
Example 2: if inside if c#
int Test1 = 1;
int Test2 = 1;
if (Test1 = 1)
{
if (Test2 = 1)
{
Console.WriteLine("This is the up Answer.");
}
Console.WriteLine("This is the down Answer.");
}
//END HERE
//THIS IS CODE FOR C#