Help me to Create logic to accept both lower and upper case and make it case insensitive

Hi,
Help me to Create logic to accept both lower and upper case and make it case insensitive
TransactionItemMail.Subject.ToString.Trim.ToLower = Config.Item(“Outlook_Mail_Filter_CIPL”).ToString.Trim.ToLower

Above condition only identifies subject which are only in upper case.
how to make this case insensitive.

Hey! Welcome to community…

Try like this:

TransactionItemMail.Subject.ToString.Trim.ToLower.equals(Config.Item(“Outlook_Mail_Filter_CIPL”).ToString.Trim.ToLower) or TransactionItemMail.Subject.ToString.Trim.ToUpper.equals(Config.Item(“Outlook_Mail_Filter_CIPL”).ToString.Trim.ToUpper)

The above expression will give you the Boolean…

It’s better to use this expression in if condition

Regards,
NaNi

@THIRU_NANI
thanks for you solution ,its working.

1 Like

Glad, the above mentioned expression is working for you…

Mark the appropriate post as solution and close the thread…

If anyone comes with the same problem this thread may help them to solve the issue…

Happy Automation…

Regards,
NaNi

1 Like

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