Check out example codes for "|| in c#". It will help you in understanding the concepts better.

Code Example 1

bool SecondOperand()
{
    Console.WriteLine("Second operand is evaluated.");
    return true;
}

bool a = true || SecondOperand();
Console.WriteLine(a);
// Output:
// True

bool b = false || SecondOperand();
Console.WriteLine(b);
// Output:
// Second operand is evaluated.
// True

Code Example 2

x op= y

Code Example 3

//The AND Symbol is &

Code Example 4

//The or Symbol Is ||

Learn ReactJs, React Native from akashmittal.com