Newbie to AEM here. Say I have:
<div
data-text="${myVariable.someProperty}"
...
I do not wish to have data-text to return a "undefined"
string if it is undefined. I tried using the logical operator and it didn't work..
<div
data-text="${myVariable.someProperty ? myVariable.someProperty : ''}"
I supposed that myVariable.someProperty
returns undefined instead of a boolean value. Any ideas how I can check for undefined in HTL (or am I doing something completely wrong)?