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

Code Example 1

if((number > 10) || (number < 0))    Console.WriteLine("Hey! The number should be 0 or more and 10 or less!");else    Console.WriteLine("Good job!");

Code Example 2

if (condition)
{
  print("Yes");
}
else
{
  print("No");
}

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com