Files
opentf/website/docs/language/functions/strcontains.mdx
2023-09-15 16:03:23 +02:00

26 lines
401 B
Plaintext

---
sidebar_label: strcontains
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
```