5

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

himabindu
  • 336
  • 3
  • 15

1 Answers1

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