github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/website/docs/language/functions/strcontains.mdx (about) 1 --- 2 page_title: strcontains - Functions - Configuration Language 3 description: |- 4 The strcontains function checks whether a given string can be found within another string. 5 --- 6 7 # `strcontains` Function 8 9 `strcontains` function checks whether a substring is within another string. 10 11 ```hcl 12 strcontains(string, substr) 13 ``` 14 15 ## Examples 16 17 ``` 18 > strcontains("hello world", "wor") 19 true 20 ``` 21 22 ``` 23 > strcontains("hello world", "wod") 24 false 25 ```