BAEL-7263: Check if variable is not null
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
||||
<body>
|
||||
|
||||
<div th:if="${#ctx.containsVariable('serverTime')}" th:text="'Server Time Using the #ctx Object Is: ' + ${serverTime}"/>
|
||||
<div th:if="${not (serverTime == null)}" th:text="'Server Time Using #th:if Conditional Is: ' + ${serverTime}"/>
|
||||
<div th:if="${serverTime != null}" th:text="'Server Time Using #th:if Conditional Is: ' + ${serverTime}"/>
|
||||
<div th:unless="${serverTime == null}" th:text="'Server Time Using #th:unless Conditional Is: ' + ${serverTime}"/>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user