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/storage-actions/storage-tasks/storage-task-conditions.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,12 +39,12 @@ A storage task contains a set of conditions and operations in a JSON document. T
39
39
}
40
40
```
41
41
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.
43
43
44
44
> [!div class="mx-imgBorder"]
45
45
> 
46
46
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`.
48
48
49
49
```json
50
50
{
@@ -63,7 +63,7 @@ A condition can contain multiple clauses separated by a comma along with either
63
63
> [!div class="mx-imgBorder"]
64
64
> 
65
65
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.
67
67
68
68
```json
69
69
{
@@ -80,11 +80,11 @@ Grouped clauses operate as a single unit separate from the rest of the clauses.
80
80
> [!div class="mx-imgBorder"]
81
81
> 
82
82
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.
0 commit comments