mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Update documentation regarding short-circuiting boolean operators (#3063)
Signed-off-by: Clément Denis <clement.denis@gmail.com>
This commit is contained in:
@@ -103,4 +103,4 @@ OpenTofu does not have an operator for the "exclusive OR" operation. If you
|
||||
know that both operators are boolean values then exclusive OR is equivalent
|
||||
to the `!=` ("not equal") operator.
|
||||
|
||||
The logical operators in OpenTofu do not short-circuit, meaning `var.foo || var.foo.bar` will produce an error message if `var.foo` is `null` because both `var.foo` and `var.foo.bar` are evaluated.
|
||||
The logical operators in OpenTofu are short-circuiting, meaning `var.foo == null || var.foo.bar == 1` will not produce an error message if `var.foo` is `null` because `var.foo.bar` is not evaluated.
|
||||
|
||||
Reference in New Issue
Block a user