- OpenTofu 语言
- 函数
- strcontains
strcontains
函数
strcontains
函数检查一个子字符串是否在另一个字符串中。
strcontains(string, substr)
示例
> strcontains("hello world", "wor")
true
> strcontains("hello world", "wod")
false
strcontains
函数strcontains
函数检查一个子字符串是否在另一个字符串中。
strcontains(string, substr)
> strcontains("hello world", "wor")
true
> strcontains("hello world", "wod")
false