using or c# code example
Example 1: c# or
// The or statement in C# is ||
if (a == b || a == c)
{
// Do something
}
Example 2: c# or
if (2 > 1 || 1 == 1)
{
// 2 is greater than 1 and 1 is equal to 1!
}
// The or statement in C# is ||
if (a == b || a == c)
{
// Do something
}
if (2 > 1 || 1 == 1)
{
// 2 is greater than 1 and 1 is equal to 1!
}