xxxxxxxxxx
//the or operator in c sharp is "||" (key to the left of 1 btw ;))
if(a = 0 || b = 0)
{
//a or b is 0
}
xxxxxxxxxx
float numberOne = 1;
string stringOne = "one";
if (numberOne == 1 || stringOne == "one")
{
print("numberOne or stringOne = 1")
}
xxxxxxxxxx
int x=15, y=5;
Console.WriteLine("----- Logic Operators -----");
Console.WriteLine(x > 10 || 100 > x);
xxxxxxxxxx
/* && would work only if both is true for example */ bool a = 1==2 && 1=< 2; // would be false
/* but if they are both true it would be true */ bool a = 1==1 && 1==1; // would be true