mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
migrate docs to mdx
This commit is contained in:
23
website/docs/language/functions/contains.mdx
Normal file
23
website/docs/language/functions/contains.mdx
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
page_title: contains - Functions - Configuration Language
|
||||
description: The contains function determines whether a list or set contains a given value.
|
||||
sidebar_title: contains
|
||||
---
|
||||
|
||||
# `contains` Function
|
||||
|
||||
`contains` determines whether a given list or set contains a given single value
|
||||
as one of its elements.
|
||||
|
||||
```hcl
|
||||
contains(list, value)
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
```
|
||||
> contains(["a", "b", "c"], "a")
|
||||
true
|
||||
> contains(["a", "b", "c"], "d")
|
||||
false
|
||||
```
|
||||
Reference in New Issue
Block a user