If we have a string like "This is High Price" how can I check whether "high" is present in that string or not in Nunjucks Template
Asked
Active
Viewed 2,579 times
1 Answers
5
Thanks to a GitHub issue, discovered in
works like so: "high" in "This is High Price"
Note: This is case-sensitive search.

trss
- 915
- 1
- 19
- 35
-
See this thread for folks who need to do a [case *insensitive* search](https://stackoverflow.com/q/59253725/1366033) – KyleMit Dec 09 '19 at 17:24