- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2015 08:36 AM
Hi,
How do I add an AND operator in a jelly script? I tried with &&, but with no luck
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2015 08:54 AM
Hi Mary,
Please check section 16 for more info.
http://wiki.servicenow.com/index.php?title=Extensions_to_Jelly_Syntax#And

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2015 08:54 AM
Hi Mary,
Please check section 16 for more info.
http://wiki.servicenow.com/index.php?title=Extensions_to_Jelly_Syntax#And
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2015 10:27 AM
${AMP} for phase 1, and $[AMP] for phase 2.
Typically the curly brackets are used; but sometimes the square brackets are what works, depending on what part of the page is being processed first. When you don't have the Two-Phase checkbox selected, just use the curly brackets.
The wiki as Sharma linked is an excellent resource for basic information. I would use their search, it's pretty good.
Side note on the ${AMP} is that is does insert two ampersands, so if you need to make a single ampersand (as SN strips them out); You'll either need to split the variable, or create your own custom jvar for the basic HTML characters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2015 01:16 PM
Thanks , it worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2015 07:33 PM
Can you mark this question as answered then, so people don't go in here to try and solve it for you, please? Thanks!