How to check that a value is not a negative number in beanshell assertion?
<p>I am trying to test that a value is not 0 or a negative number, but my test keeps coming back as passed when the number is negative. This is what I have:</p>

<pre><code>if (value &gt; 0) {

Failure = false;
} else {

Failure = true;
}
</code></pre>

<p>I thought less than 0 would cover minus numbers, but it seems not to? Or there is something else wrong with this code?</p>