How can I correctly check if a string does NOT contain a specific word?
问题 I am currently trying to figure out how to solve the above named problem. Specifically I want to check if the string does not contain the word "stream" both in capital and lowercase letters. Here's my code so far: if (((gewaesser_name1.includes("Stream") == "false") || (gewaesser_name1.includes("stream") == "false")) && ((gewaesser_name2.includes("Stream") == "false") || (gewaesser_name2.includes("stream") == "false"))) {var a= "..."} The code does obviously not work as the results are not