blob: 6e684a6f6aa1d11560e91729abbe2dc56610a419 [file] [log] [blame]
---
page_title: strcontains - Functions - Configuration Language
description: |-
The strcontains function checks whether a given string can be found within another string.
---
# `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
```