title: Operator cannot be applied to operands of type string and int
body: <p>Error:  </p>
  
  <blockquote>
    <p>Operator '&lt;=' cannot be applied to operands of type string and int.</p>
  </blockquote>
  
  <p>In my case 'details[0].max' Consists of value 0.0 like this.</p>
  
  <pre><code>if (!string.IsNullOrEmpty(details[0].customsalary) &amp;&amp; (details[0].max) &lt;= 0 &amp;&amp; (details[0].max) &lt;= 0)
  {
      _jobdetailsmodel.Salary = details[0].customsalary;
  }
  </code></pre>
  
  <p>if value of details[0].max is 0.0 and details[0].min is 0.0 then condition should become true.</p>