0

I wish to make an "if statement" depending on whether one of ~30 substrings show up in a string. The only way I came up with so far is

if substring_1 in string or substring_2 in string or substring_3 in string...

Does anybody have a "nicer" way of doing this? :-)

KrokerOlaf
  • 23
  • 2

0 Answers0