Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

AND operator in jelly script

maryc
Tera Contributor

Hi,

How do I add an AND operator in a jelly script? I tried with &&, but with no luck

Thanks

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee
4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

meia_ahaesy
Mega Expert

${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.


maryc
Tera Contributor

Thanks , it worked


Can you mark this question as answered then, so people don't go in here to try and solve it for you, please? Thanks!