Help In Array (list)

Hello everybody! I need help finding an occurrence within a text.

My scenario is as follows: List of bad words [bad, lost, dirty] Text: "Neque porro quisquam est qui dolorem ipsum quia dolor lost it amet, consectetur, adipisci velit"

How do I know if my text contains any of the words from my list "bad words"?
 

Endercraft

Moderator (& bug finder :D)
Depending on how long your list is and how long the text is, you can use for example an iterate dictionary/array loop. Then in that loop use the condition if your text contains [iterator_value] then set a variable to true and break out of loop.
 
Top