JSTL的if判断

转载http://blog.csdn.net/eternalray/article/details/51364029

判断是否 大于

<c:if test="a gt 1">大于1</c>

判断是否 小于

<c:if test="a lt 1">小于1</c>

判断是否 等于

<c:if test="a eq 1">等于1</c>

 

判断是否 不等于

<c:if test="a ne 1">不等于1</c>

 

全部如下:

算术运算符 + 、 - 、 * 、 / (或 div )和 % (或 mod )  

关系运算符 == (或 eq )、 != (或 ne )、 < (或 lt )、 > (或 gt )、 <= (或 le )和 >= (或 ge )  

逻辑运算符 && (或 and )、 || (或 or )和 ! (或 not )

posted on 2017-09-13 09:50  景行行止  阅读(396)  评论(0)    收藏  举报

导航