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 :
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?
Kindly provide screen shot of your code to understand the issue exactly. If you want to compare string variable with pega property in Java Script, First you need to store pega property value in another string variable using JSP code and compare two string variables in Java script using equal symbol
I have attached the file where I face the problem before. In the automation I try to compare to string values Case_ID and OrderID and using boolean expression for comparing so the error occurs in boolean expression everytime for type mismatch.
After that i try string comparison which store the value of one of the two string's value. So in this case problem occurs when i use Equals symbol for checking as in equal symbol it takes only String Text as a second string.
So my problem is resolved by right clicking on Boolean Expression in the solution explorer and then select "Identifier String" and then do the comparison.