Skip to content

Commit 620d6f2

Browse files
committed
Final PO Review
1 parent f366f2e commit 620d6f2

File tree

2 files changed

+22
-27
lines changed

2 files changed

+22
-27
lines changed

assets/scss/main.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
h4[id]:target,
4141
h5[id]:target {
4242
content: " ";
43-
margin-top: -100px;
44-
padding-top: 100px;
43+
margin-top: -90px;
44+
padding-top: 90px;
4545
}
4646
}
4747

content/en/docs/2024.9/Reference/Concepts/fundamentals/blocks/block-properties/property-editors/expression-editor.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Types of expressions:
264264
- [Enums][Enum expressions]
265265
- [Casting][Casting expressions]
266266
- [Indexes][Index expressions]
267-
- [Decomposition][Decomposition expressions] ([output property][] only)
267+
- [Decomposition][Decomposition expressions] ([output property][Output Properties] only)
268268

269269
### Arithmetic expressions
270270

@@ -561,18 +561,13 @@ In the examples below assume:
561561

562562
{{< figure src="/images/set-variable/set-variable-expression-decomposition.PNG" >}}
563563

564-
Decomposition expressions are used to extract the properties of an [Output property][Output properties] and store them in [variables][Variables Concept].
564+
Decomposition expressions are used to save selected values from an [Output property][Output properties] to multiple [variables][Variables Concept].
565565

566566
{{% alert title="Note" %}}
567567
This is currently only supported by output properties.
568568
{{% /alert %}}
569569

570-
[Output properties][] can be decomposed using the decomposition syntax which includes the following syntaxes:
571-
572-
- [Property expression][Property expressions]
573-
- [Index expression][Index expressions]
574-
575-
The decomposition syntax follows a very similar pattern to a `JSON` object:
570+
Decomposition syntax follows a similar pattern to a `JSON` object:
576571

577572
- each `key` is the property path expression, where `$` is the root of the output value.
578573
- each `value` is the variable name, prefixed with `($)`.
@@ -584,13 +579,13 @@ The decomposition syntax follows a very similar pattern to a `JSON` object:
584579
}
585580
```
586581

587-
The examples below assumes that the output value contains the following JSON object:
582+
The examples below assumes that the output value contains the following data:
588583

589584
``` json
590585
{
591586
"company": {
592587
"name": "Company Name",
593-
"department": [
588+
"departments": [
594589
{
595590
"name": "HR",
596591
"employees": [
@@ -622,17 +617,17 @@ The examples below assumes that the output value contains the following JSON obj
622617
}
623618
```
624619

625-
### Decomposing an object property
620+
#### Decomposing an object property
626621

627-
To decompose this structure and store the departments, the syntax would be:
622+
To save the `departments` property, the syntax would be:
628623

629624
```json
630625
{
631-
"$.company.department": ($)ListOfDepartment
626+
"$.company.departments": ($)ListOfDepartments
632627
}
633628
```
634629

635-
In this example, the variable `($)ListOfDepartment` will be set to the following value:
630+
In this example, the variable `($)ListOfDepartments` will be set to the following value:
636631

637632
```json
638633
[
@@ -665,13 +660,13 @@ In this example, the variable `($)ListOfDepartment` will be set to the following
665660
]
666661
```
667662

668-
### Decomposing a list item
663+
#### Decomposing an item in a list
669664

670-
To decompose this structure and store the first `department`, the syntax would be:
665+
To save the first department, the syntax would be:
671666

672667
```json
673668
{
674-
"$.company.department[0]": ($)FirstDepartment
669+
"$.company.departments[0]": ($)FirstDepartment
675670
}
676671
```
677672

@@ -693,13 +688,13 @@ In this example, the variable `($)FirstDepartment` will be set to the following
693688
}
694689
```
695690

696-
### Decomposing the last list item
691+
#### Decomposing the last item in a list
697692

698-
To decompose this structure and store the last `employee` of the first `department`, the syntax would be:
693+
To save the last `employee` of the first department, the syntax would be:
699694

700695
```json
701696
{
702-
"$.company.department[0].employees[-1]": ($)LastEmployeeOfFirstDepartment
697+
"$.company.departments[0].employees[-1]": ($)LastEmployeeOfFirstDepartment
703698
}
704699
```
705700

@@ -712,14 +707,14 @@ In this example, the variable `($)LastEmployeeOfFirstDepartment` will be set to
712707
}
713708
```
714709

715-
### Decomposing multiple properties at the same time
710+
#### Decomposing multiple properties at the same time
716711

717-
To decompose this structure and store the `id` and `name` of the first `employee` of the first `department`, the syntax would be:
712+
To save the `id` and `name` of the first `employee` of the first department, the syntax would be:
718713

719714
```json
720715
{
721-
"$.company.department[0].employees[0].id": ($)FirstEmployeeId,
722-
"$.company.department[0].employees[0].name": ($)FirstEmployeeName
716+
"$.company.departments[0].employees[0].id": ($)FirstEmployeeId,
717+
"$.company.departments[0].employees[0].name": ($)FirstEmployeeName
723718
}
724719
```
725720

@@ -839,7 +834,7 @@ This may change in future to allow developers to specifically select which of th
839834
[Enum expressions]: {{< ref "#enum-expressions" >}}
840835
[Casting expressions]: {{< ref "#casting-expressions" >}}
841836
[Index expressions]: {{< ref "#index-expressions" >}}
842-
[Decomposition expressions]: {{< ref "#output-property-decomposition-expressions" >}}
837+
[Decomposition expressions]: {{< ref "#decomposition-expressions" >}}
843838

844839
[Data Type]: {{< url path="Cortex.Reference.Concepts.Fundamentals.DataTypes.MainDoc" >}}
845840

0 commit comments

Comments
 (0)