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

Code Example 1

//The or Symbol Is ||

Code Example 2

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

Code Example 3

bool passed = false;
Console.WriteLine(!passed);  // output: True
Console.WriteLine(!true);    // output: False

Learn ReactJs, React Native from akashmittal.com