Is there any way to do exclusive or in EL? I have two variables. I want to check if only one of them is empty at a time. I understand that I can do this manually by doing the following, but I wanted to know if there is an EL keyword for it?
<c:if test="${(!empty var1 and empty var2) or (empty var1 and !empty var2}> ----Do something here.. </c:if>
Susie source share