title: operator || cannot be applied to int and bool
body: <pre><code>class coding
  {
      int a;
      public int setdata(int feet,int inches)
      {
          if (feet || inches &lt; 0)
          {
              Console.WriteLine("invalid");
  
          }
          a = 12 * feet + inches;
  
          else { return a; }
  
      }
      public void display()
      {
          Console.WriteLine("the inches is" + a);
      }
  }
  </code></pre>
  
  <p>I am having an problem at this line:</p>
  
  <pre><code>if (feet || inches &lt; 0)
  </code></pre>
  
  <p>I am not getting why this issue is.</p>