I am trying to set align on a div like this :
<div align="${shoudSetAlign ? myObject.memberVariable'someString' : ''}" </div>
My requirement is to set align only if shoudSetAlign's value is true and don't set any value at all if shoudSetAlign's value is false. If I implement above code, what's happening is when shoudSetAlign's value is false, it's setting empty value to shoudSetAlign which I don't want. The reason for this kind of requirement is that on client side, we check if align is set or not. If it's set, we leave it as it is. But if it's not set, some value is set on client side behind some logic. Also I am facing error while appending string to myObject.memberVariable like this :
"${shoudSetAlign ? myObject.memberVariable'someString' : ''}"
Please advise me as solution for this.