need a solution for this problem
<p>I have parts produced and parts rejected options in my app. My client gave me a condition to put:</p>

<p>At any time parts rejected should not be less than the parts produced<br>
and<br>
You should be able to save even if the parts produced is 0*</p>

<p>What do I need to put the condition there to make it successful?</p>

<p>Parts produced/rected those are textbox names.</p>

<p>The data in the textboxes we can select it from database.</p>

<p>Now I have the condition like</p>

<pre><code>if (partProduced &lt;= _runtime.PartsRejected)
{
errorMessage.Append("Parts rejected should not be greater than or equal to parts produced." + Environment.NewLine); 
}
</code></pre>

<p>this is the condition I have now I need to change it as my client requirement</p>
