Question
5
Replies
9494
Views
Posted: September 6, 2017
Last activity: September 7, 2017
Closed
Solved
Need to compare two string values
I have two strings value and I have to compare those. For that I have used String expression but it won't work.
My requirement is that :
Hi,
I have two compare two string's values.
My requirement is like that :
I fetched a case ID from email and store it in a global variable. Let's say - var1.
Now I fetch case ID from pega and it is stored in pega property - CaseID
Now I have to compare the values of these two properties.
I already try using String expression(Var1 = CaseID = result ) In this case "result" is storing value of one of two properties and then when I compare it with Equal symbol then it asks for second string which we have to provide manually (and here whatever we provide it is taking as a "String Text" and not its value). So is there any way to pass the value of any one of the string as a text in second string?
Please help
Thanks in advance!!
Regards,
Rohit Sharma
Hi Rohit,
As per my understanding you have var1(variable in JS) and CaseID(pega property). Now you want to check whether both these strings are same in Java Script code or in JSP Page?
If possible can you share the screenshots of code where you are trying to achieve this.
Regards
Mahesh