NAnt: cannot resolve to boolean value.
    <if test="${deployErrors} &gt; 0">
       <fail message="MSDeploy failed" />
    </if>

   
`${deployErrors}` is populated from a regex capture group and either has a numeric value or empty string. How can I check if this is greater than 0 in a NAnt if block? Here's the error I'm getting if deploy errors contains '1'

> '1 > 0' is not a valid value for
> attribute 'test' of <if ... />.
>     Cannot resolve '1 > 0' to boolean value.
>         String was not recognized as a valid Boolean.
NAnt: cannot resolve to boolean value.
===

    <if test="${deployErrors} &gt; 0">
       <fail message="MSDeploy failed" />
    </if>

   
`${deployErrors}` is populated from a regex capture group and either has a numeric value or empty string. How can I check if this is greater than 0 in a NAnt if block? Here's the error I'm getting if deploy errors contains '1'

> '1 > 0' is not a valid value for
> attribute 'test' of <if ... />.
>     Cannot resolve '1 > 0' to boolean value.
>         String was not recognized as a valid Boolean.