Skip to content

Commit 2407ca1

Browse files
committed
Final
1 parent f0eadc7 commit 2407ca1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
-11.7 KB
Loading
Loading
Loading
Loading

articles/storage-actions/storage-tasks/storage-task-conditions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ A storage task contains a set of conditions and operations in a JSON document. T
3939
}
4040
```
4141

42-
A condition a collection of one or more _clauses_. Each clause contains a _property_, a _value_, and an _operator_. When the storage task runs, it uses the operator to compare a property with a value to determine whether a clause is met by the target object. In a clause, the operator always appears first followed by the property, and then the value. The following image shows how each element is positioned in the expression.
42+
A condition a collection of one or more _clauses_. Each clause contains a _property_, a _value_, and an _operator_. When the storage task runs, it uses the operator to compare a property with a value to determine whether a clause is met by the target object. In a clause, the **operator** always appears first followed by the **property**, and then the **value**. The following image shows how each element is positioned in the expression.
4343

4444
> [!div class="mx-imgBorder"]
4545
> ![Format of a simple condition with an operator, property, and value.](../media/storage-tasks/storage-task-conditions/storage-task-conditions-condition-format-basic.png)
4646
47-
The following snippet shows an example clause that allows operations only on Microsoft Word documents. This clause targets all documents that end with the file extension `.docx`. Therefore, the operator is `endsWith`, the property is `Name`, the value is `.docx`.
47+
The following clause allows operations only on Microsoft Word documents. This clause targets all documents that end with the file extension `.docx`. Therefore, the operator is `endsWith`, the property is `Name`, the value is `.docx`.
4848

4949
```json
5050
{
@@ -63,7 +63,7 @@ A condition can contain multiple clauses separated by a comma along with either
6363
> [!div class="mx-imgBorder"]
6464
> ![Format of a condition that contains two clauses.](../media/storage-tasks/storage-task-conditions/storage-task-conditions-condition-format-multiple.png)
6565
66-
The following JSON shows an example of two clauses. Because the `and` string appears at the beginning, both clauses must evaluate to `true`.
66+
The following JSON shows a condition that contains two clauses. Because the `and` string is used in this expression, both clauses must evaluate to `true` before an operation is performed on the object.
6767

6868
```json
6969
{
@@ -80,11 +80,11 @@ Grouped clauses operate as a single unit separate from the rest of the clauses.
8080
> [!div class="mx-imgBorder"]
8181
> ![Format of a condition that contains two clauses grouped together.](../media/storage-tasks/storage-task-conditions/storage-task-conditions-condition-format-groups.png)
8282
83-
The following JSON shows an example two clauses grouped together.
83+
The following condition allows operations only on Microsoft Word documents where the `readyForLegalHold` tag of the document is set to a value of `Yes`. Operations are also performed on objects that are greater than 100 bytes even if the other two conditions are not true.
8484

8585
```json
8686
{
87-
"condition": "[[[or(and(endsWith(Name, '.docx'), equals(Tags.Value[readyForLegalHold], 'Yes')), greater(Content-Length, '0'))]]"
87+
"condition": "[[[or(and(endsWith(Name, '.docx'), equals(Tags.Value[readyForLegalHold], 'Yes')), greater(Content-Length, '100'))]]"
8888
}
8989
```
9090

0 commit comments

Comments
 (0)