You tell us--*does* it work?
You'd be better off using JSTL's c:if tag; when functionality overlaps with the JSTL
you should favor the JSTL. This also gives you a complete EL that will allow you to do more complex calculations.
That said, if the calculation is even remotely complex, I'd consider moving the logic to the
Java layer rather than doing in the
JSP itself.