samedi 28 février 2015

Thymeleaf: check if a variable is defined

How can I check if a variable is defined in Thymeleaf?


Something like this in Javascript:



if (typeof variable !== 'undefined') { }


or this in PHP:



if (isset($var)) { }


Is there an equivalent in Thymeleaf?


Aucun commentaire:

Enregistrer un commentaire