<p th:utext="${tfl.taskid != 0} ? ${tfl.locationname} : 'No location allocated in database' "></p>In the above code tfl is a model attribute returned from Spring controller...
Inline if else condition in thymeleaf
Here in this article we will see how to create inline if else condition in thymeleaf framework.
Post a Comment
Post a Comment