If Condition - Ignore Case?

Hi Guys,

Attached a pic…
The current item is Amazon, how do I insert ignore case ?

Thanks all :grinning:

Screenshot 2022-06-27 173318

Hello,
You can use .toLower to make both lower case and check.

Thanks!
Athira

1 Like

Hi, this works but only on lower.
Im looking to ignore case so upper and lower.

Thank you :grinning:

No, the idea is to convert both strings your compare to the same case, be it .ToUpper or .ToLower is actually quite trivial.

If stringvariable1.ToLower = stringvariable2.ToLower

yields the exact same result as

If stringvariable1.ToUpper = stringvariable2.ToUpper

Ive created a list of companies, one item in this list is Amazon.
The reason for the capital A is for creating folders later.
The pdfs that im reading are concentrating on the email, which is amazon.com ( lower case ).
If the pdf contains amazon then do this etc.

Below is the current condition which only works if I change the list item from Amazon to amazon.

Text_from_Read_PDF_Text.toLower.Contains(item)

Im an Idiot !!!
I stupidly put the .ToLower after the text from the pdf rather than the Item !!!

Thanks guys :rofl:

Text_from_Read_PDF_Text.Contains(item) = true OR Text_from_Read_PDF_Text.Contains(item.ToLower)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.