You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/data-types.md
+5-11Lines changed: 5 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ A **array** in Bicep is an ordered collection of values—such as strings, integ
16
16
17
17
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).
18
18
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).
20
20
21
21
```bicep
22
22
var multiLineArray = [
@@ -31,15 +31,9 @@ var mixedArray = ['abc', 'def'
31
31
'ghi']
32
32
```
33
33
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.
38
35
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.
43
37
44
38
```bicep
45
39
var integerArray = [
@@ -117,12 +111,12 @@ When you specify Boolean values, use `true` or `false`. Don't surround the value
117
111
param exampleBool bool = true
118
112
```
119
113
120
-
## Boolean-related operators
114
+
###Boolean-related operators
121
115
122
116
- Use [Comparison operators](./operators-comparison.md) to compare boolean values.
123
117
- See [Logical operators](./operators-logical.md).
124
118
125
-
## Boolean-related functions
119
+
###Boolean-related functions
126
120
127
121
See [Logical function](./bicep-functions-logical.md)
0 commit comments