Back to Opentofu

`strcontains` Function

website/docs/language/functions/strcontains.mdx

1.11.6255 B
Original Source

strcontains Function

strcontains function checks whether a substring is within another string.

hcl
strcontains(string, substr)

Examples

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