Skip to content

Commit 3832b79

Browse files
committed
update
1 parent 707f015 commit 3832b79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-resource-manager/bicep/bicep-functions-flow-control.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ title: Bicep functions - flow control
33
description: Describes the functions that incluence execution flow.
44
ms.topic: reference
55
ms.custom: devx-track-bicep
6-
ms.date: 03/21/2025
6+
ms.date: 03/25/2025
77
---
88

99
# Flow control functions for Bicep
1010

1111
Bicep provides the `fail` function for influencing execution flow.
1212

13-
The `fail` function is primarily used for enforcing constraints and terminating evaluation based on logical conditions. It usually works within short-circuiting expressions like ?? (coalesce operator) and ?: (ternary operator). For more information, see [Logical operators](./operators-logical.md).
13+
The `fail` function is primarily used for enforcing constraints and terminating evaluation based on logical conditions. It usually works within short-circuiting expressions like [?? (coalesce operator)](./operators-logical.md#coalesce-) and [?: (ternary operator)](./operators-logical.md#conditional-expression--). For more information, see [Logical operators](./operators-logical.md).
1414

1515
## fail
1616

@@ -40,7 +40,7 @@ Here, the coalesce operator (??) ensures that if **.name** exists, execution sto
4040
x != 0 ? y / x : fail('x cannot be zero because it will be used as a divisor')
4141
```
4242

43-
In this case, the ternary operator (? :) checks if **x** is nonzero before performing division. If **x** is 0, `fail` is invoked, stopping execution before an invalid operation occurs.
43+
In this case, the ternary operator (? :) checks if **x** is nonzero before performing division. If **x** is **0**, `fail` is invoked, stopping execution before an invalid operation occurs.
4444

4545
## Next steps
4646

0 commit comments

Comments
 (0)