SyntaxFix
Write A Post
Hire A Developer
Questions
In addition with skaffman answer, simple if-else you can use ternary operator like this
<c:set value="34" var="num"/> <c:out value="${num % 2 eq 0 ? 'even': 'odd'}"/>