Skip to content

Commit 6451ef0

Browse files
committed
edit
1 parent f147aa5 commit 6451ef0

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

articles/azure-resource-manager/bicep/data-types.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **array** in Bicep is an ordered collection of values—such as strings, integ
1616

1717
Arrays in Bicep are immutable. Once declared, their contents can't be changed. To "modify" an array, create a new array using functions like [`concat`](./bicep-functions-array.md#concat), [`map`](./bicep-functions-lambda.md#map), or [`filter`](./bicep-functions-lambda.md#filter).
1818

19-
You can declare arrays in Bicep using either single-line or multi-line syntax:
19+
You can declare arrays in Bicep using either single-line or multi-line syntax. Multi-line array declarations require [Bicep CLI version 0.7.X or later](https://github.com/Azure/bicep/releases/tag/v0.7.4).
2020

2121
```bicep
2222
var multiLineArray = [
@@ -31,15 +31,9 @@ var mixedArray = ['abc', 'def'
3131
'ghi']
3232
```
3333

34-
- **Single-line arrays** use commas (`,`) to separate values.
35-
- **Multi-line arrays** don't use commas between values.
36-
- You can mix single-line and multi-line declarations as needed.
37-
- Multi-line array declarations require [Bicep CLI version 0.7.X or later](](https://github.com/Azure/bicep/releases/tag/v0.7.4)).
34+
**Single-line arrays** use commas (`,`) to separate values. **Multi-line arrays** don't use commas between values. You can mix single-line and multi-line declarations as needed.
3835

39-
Each array element can be of any type. Arrays can be:
40-
41-
- **Homogeneous** (all elements of the same type)
42-
- **Heterogeneous** (elements of different types)
36+
Each array element can be of any type. You can have an array where each item is the same data type, or an array that holds different data types.
4337

4438
```bicep
4539
var integerArray = [
@@ -117,12 +111,12 @@ When you specify Boolean values, use `true` or `false`. Don't surround the value
117111
param exampleBool bool = true
118112
```
119113

120-
## Boolean-related operators
114+
### Boolean-related operators
121115

122116
- Use [Comparison operators](./operators-comparison.md) to compare boolean values.
123117
- See [Logical operators](./operators-logical.md).
124118

125-
## Boolean-related functions
119+
### Boolean-related functions
126120

127121
See [Logical function](./bicep-functions-logical.md)
128122

0 commit comments

Comments
 (0)