Check if a string contains a word in an array
Hello, I need to check if a string contains a word that is in a array
6 Replies
and the best would be not to use a loop, because the string will be analyzed at each message
so in an array it would look like
you can also simplified it using
LINQ
like the following
but the question itself is not clear
I still not understand what he want to do exactlyok look
I would like to make a condition so as to have if the message contains the word of the array
both of the solutions we gave you will work
maybe not a condition but something to get this
ok i will check ty