Skip to content

Commit c883b46

Browse files
committed
Merge remote-tracking branch 'upstream/main' into erspnew
2 parents efdb58e + b7df487 commit c883b46

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

articles/azure-resource-manager/bicep/operators-comparison.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The string is `true` because lowercase letters are less than uppercase letters.
185185

186186
`operand1 == operand2`
187187

188-
Evaluates if the values are equal.
188+
Evaluates if the values are equal. The comparison is case-sensitive.
189189

190190
### Operands
191191

@@ -207,7 +207,7 @@ param firstInt int = 5
207207
param secondInt int = 5
208208
209209
param firstString string = 'demo'
210-
param secondString string = 'demo'
210+
param secondString string = 'Demo'
211211
212212
param firstBool bool = true
213213
param secondBool bool = true
@@ -219,11 +219,11 @@ output boolEqual bool = firstBool == secondBool
219219

220220
Output from the example:
221221

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 | |
227227

228228
When comparing arrays, the two arrays must have the same elements and order. The arrays don't need to be assigned to each other.
229229

articles/azure-resource-manager/templates/template-functions-comparison.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The output from the preceding example with the default values is:
5959

6060
`equals(arg1, arg2)`
6161

62-
Checks whether two values equal each other.
62+
Checks whether two values are identical. The comparison is case-sensitive.
6363

6464
In Bicep, use the `==` operator instead. See [Equals ==](../bicep/operators-comparison.md#equals-).
6565

@@ -101,12 +101,12 @@ The following example checks different types of values for equality. All the def
101101

102102
The output from the preceding example with the default values is:
103103

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 | |
110110

111111
The following example template uses [not](template-functions-logical.md#not) with **equals**.
112112

0 commit comments

Comments
 (0)