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

Code Example 1

if (true || false) { //Checks if either side is true
  Console.WriteLine("One is true");
}

if (false || false) {
  Console.WriteLine("Both are false");
}

//Output:
//One is true

Code Example 2

//The AND (&&) statement will return true if both sides are true, 
//otherwise it returns false

if (true && true) { //checks if both sides are true
  Console.WriteLine("Both are true");
}

if (false && true) {
  Console.WriteLine("One or more is false");
}

//Output:
//Both are true

Code Example 3

// The Or Symbol Is   ||

Code Example 4

//The AND Symbol is &

Code Example 5

// The or statement in C# is ||
if (a == b || a == c)
{
  // Do something
}

Code Example 6

//The or Symbol Is ||

Learn ReactJs, React Native from akashmittal.com