- 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