Using "&&" in <g: evaluate>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2015 02:46 PM
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 "&" but whenever i am trying to print this boolean variable outside< g:evaluate > it returns null.
Any help is appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2015 09:17 AM
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