equals (ignore case) Condition in Extensions

Bronze Contributor
Bronze Contributor

Hi,

 

Just wanted to verify my understanding of the equals (ignore case) condition in the Set Data Values extension.  Would Test, test, tEst values for variable_1 meet the condition below? I ask, because the values that are passed in our tags sometimes come in mixed cases for some unknown reason.

 

Condition: variable_1:  equals (ignore case) :  test

 

Thanks!

4 REPLIES 4

equals (ignore case) Condition in Extensions

Employee Emeritus

Hi @franzine_co. Have you looked into using the Lower-Casing Extension? Personally, I have used it to great effect. Or is it affect?

 

LOL Either way it worked good. 

 

Let me know!

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.

equals (ignore case) Condition in Extensions

Bronze Contributor
Bronze Contributor
Thanks for the suggestion, @kathleen_jo! I have not used that before. I would still like to know if the equals (ignore case) would work? Maybe I should have put it differently. What if I had written the condition in all caps (please see below). Would that condition that uses "TEST" match data that comes in as "test"?

Condition: variable_1: equals (ignore case) : TEST

Thanks again,
Franzine

equals (ignore case) Condition in Extensions

Gold Contributor
Gold Contributor
@franzine_co

I presume it wont work as you are setting a condition "equals (ignore case)" and provided the value as TEST but we are not saying to change into lowercase when the value populated.

Nevertheless, if you want to track and change into lower case then you should write smallJS function toLowerCase() in JS extension to capture the expected values.

Hope it helps!!! Thanks!

equals (ignore case) Condition in Extensions

Bronze Contributor
Bronze Contributor

Thanks, @Srinivasan! I ran a test, and (ignore case) does mean it ignores the case of the value such that...

An extension with [Condition: variable_1: equals (ignore case) : TEST] will execute even if variable_1=test or variable_1=Test or variable_1=tEst.

 

 

Public