File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
articles/azure-resource-manager Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ The string is `true` because lowercase letters are less than uppercase letters.
185
185
186
186
` operand1 == operand2 `
187
187
188
- Evaluates if the values are equal.
188
+ Evaluates if the values are equal. The comparison is case-sensitive.
189
189
190
190
### Operands
191
191
@@ -207,7 +207,7 @@ param firstInt int = 5
207
207
param secondInt int = 5
208
208
209
209
param firstString string = 'demo'
210
- param secondString string = 'demo '
210
+ param secondString string = 'Demo '
211
211
212
212
param firstBool bool = true
213
213
param secondBool bool = true
@@ -219,11 +219,11 @@ output boolEqual bool = firstBool == secondBool
219
219
220
220
Output from the example:
221
221
222
- | Name | Type | Value |
223
- | ---- | ---- | ---- |
224
- | ` intEqual ` | boolean | true |
225
- | ` stringEqual ` | boolean | true |
226
- | ` boolEqual ` | boolean | true |
222
+ | Name | Type | Value | Note |
223
+ | ---- | ---- | ----- | ---- |
224
+ | ` intEqual ` | boolean | true | |
225
+ | ` stringEqual ` | boolean | false | The result is ` false ` because the comparison is case-sensitive. |
226
+ | ` boolEqual ` | boolean | true | |
227
227
228
228
When comparing arrays, the two arrays must have the same elements and order. The arrays don't need to be assigned to each other.
229
229
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ The output from the preceding example with the default values is:
59
59
60
60
` equals(arg1, arg2) `
61
61
62
- Checks whether two values equal each other .
62
+ Checks whether two values are identical. The comparison is case-sensitive .
63
63
64
64
In Bicep, use the ` == ` operator instead. See [ Equals ==] ( ../bicep/operators-comparison.md#equals- ) .
65
65
@@ -101,12 +101,12 @@ The following example checks different types of values for equality. All the def
101
101
102
102
The output from the preceding example with the default values is:
103
103
104
- | Name | Type | Value |
105
- | ---- | ---- | ----- |
106
- | checkInts | Bool | True |
107
- | checkStrings | Bool | True |
108
- | checkArrays | Bool | True |
109
- | checkObjects | Bool | True |
104
+ | Name | Type | Value | Note |
105
+ | ---- | ---- | ----- | ---- |
106
+ | checkInts | Bool | True | |
107
+ | checkStrings | Bool | False | The result is ` false ` becasue the comparison is case-sensitive. |
108
+ | checkArrays | Bool | True | |
109
+ | checkObjects | Bool | True | |
110
110
111
111
The following example template uses [ not] ( template-functions-logical.md#not ) with ** equals** .
112
112
You can’t perform that action at this time.
0 commit comments