Posted: 9 Mar 2017 11:00 EST Last activity: 6 Nov 2018 20:02 EST
Pega Robotics Studio 8: Comparing two variables
PRS Comparison operators in the Toolbox allow us to compare the contents of a variable with a constant (e.g. x >=10, string="hello"); however, how would we compare two variables (variable1 = variable2)?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
You can do this a number of ways. The first option is the Boolean Expression. It is found in the Comparisons & Expressions section. By default the elements you included are typed as Double variables. You can change that to do other types of comparisons.
For example, you can write a C# expression like this to do case insensitive comparison of 2 strings.