Add null to tobool docs
This commit is contained in:
parent
1212bbec9f
commit
eb927958bd
|
@ -14,7 +14,7 @@ Explicit type conversions are rarely necessary in Terraform because it will
|
||||||
convert types automatically where required. Use the explicit type conversion
|
convert types automatically where required. Use the explicit type conversion
|
||||||
functions only to normalize types returned in module outputs.
|
functions only to normalize types returned in module outputs.
|
||||||
|
|
||||||
Only boolean values and the exact strings `"true"` and `"false"` can be
|
Only boolean values, `null`, and the exact strings `"true"` and `"false"` can be
|
||||||
converted to boolean. All other values will produce an error.
|
converted to boolean. All other values will produce an error.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
@ -24,6 +24,8 @@ converted to boolean. All other values will produce an error.
|
||||||
true
|
true
|
||||||
> tobool("true")
|
> tobool("true")
|
||||||
true
|
true
|
||||||
|
> tobool(null)
|
||||||
|
null
|
||||||
> tobool("no")
|
> tobool("no")
|
||||||
Error: Invalid function argument
|
Error: Invalid function argument
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue