Aller au contenu principal

Fs 5.1 Method equals not comparing the object

Commentaires

1 commentaire

  • Zendesk API User
    Author: mbergmann - 8/7/2014 9:05

    Hello Siva,

    The reason is that you are simply not comparing Strings ;-)

    Using $CMS_SET(...)$...$CMS_END_SET$ does not create a String but a template fragment object that will be rendered upon calling $CMS_VALUE(..)$ or .toString() on it - as described in the documentation of $CMS_SET$.

    So you have to use

    $CMS_VALUE("lt_overlaylink_email".equals(ltSelectedName.toString()))$

    Michael

    0

Vous devez vous connecter pour laisser un commentaire.