Check out example codes for "c# if statement with 2 conditions". It will help you in understanding the concepts better.

Code Example 1

if (checkbox.checked)
  {
    if (columnname != a && columnname != b && columnname != c)
    {
      "statement 1"
    }
  }
else
  {
    if (columnname != a && columnname != b && columnname != c 
        && columnname != A2)
    {
      "statement 1"
    }
  }

Learn ReactJs, React Native from akashmittal.com