How to check several text string in one Field?

Discussion created by jzbubble on Nov 25, 2018
Latest reply on Nov 26, 2018 by jzbubble

Dear all,

      I want to check if there is certain string like "rad" or "radiological" or " images" in a field ( task name ). If yes, it should go to script A. Then I also want to check if this same field contains strings "path" or "pathological" or "slides", then it go to script B. etc.


     I use a silly way to achieve it. If (patterncount(task name); "rad") perform script A   Else if(patterncount(task name); "images) perform script A . etc. I am thinking it must have an easier way to achieve it. Thanks in advance.