BAEL-7263: Check if variable is not null

This commit is contained in:
Constantin 2024-01-29 15:50:28 +02:00
parent 550788a96d
commit 4f0a16e411
1 changed files with 1 additions and 1 deletions

View File

@ -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>