Skip to content

strcontains Function ​

The strcontains function searches for a substring within a string.

hcl
strcontains(string, substr)

Examples ​

> strcontains("hello world", "wor")
true
> strcontains("hello world", "wod")
false

Released under the MPL-2.0 License.