0

I want to check, if a string exists in another string, but when I search for the string, I can only get a confirmation, when the string is exactly the same. How can I bypass that?

einmalundweg
  • 83
  • 1
  • 4

1 Answers1

0

Try this, it checks whether string is contained in string2 (case insensitive) after verifying they are different :

string != string2 and str.lower(string) in str.lower(string2)
EricLavault
  • 7,434
  • 2
  • 21
  • 39