Using "&&" in <g: evaluate>

prateek10
Kilo Explorer

I am creating a CMS site, i used a ui macro in which i am using a   boolean variable in <g:evalute>. The issue is I am unable to use '&&' in the If condition. I tried using "<![CDATA[   ....]]" and also "&amp;"   but whenever i am trying to print this boolean variable outside< g:evaluate > it returns null.

Any help is appreciated.

5 REPLIES 5

As best practice Service Now advise that JavaScript that appears in the HTML part of a given UI page or UI macro should be placed in a Client Script field. In that way you can avoid escaping issues. Please see the guidance provided on the Service Now wiki http://wiki.servicenow.com/index.php?title=Extensions_to_Jelly_Syntax#Ampersand However, as Berny says ${AND}, or alternatively ${AMP} should work. Can you update this post with an example of the code you are testing with so we can assist you further