SIBLINGS
Gets info about all the sibling elements of the current item. Siblings are all elements that are children of the item's
parent, excluding the item itself.
If you are in page data, then "siblings" is an empty array.
Syntax
=SIBLINGS
Examples
In the following examples, the selected shape is Shape 2, which is contained in a group with 4 shapes in it, with the following text and values:
Text | Property 1 | Property 2 |
---|---|---|
Shape 1 | 1 | 10 |
Shape 2 | 4 | 18 |
Shape 3 | 2 | |
Shape 4 | 6 | 14 |
=SIBLINGS
→ ["Shape 1", "Shape 3", "Shape 4"]
The array of all children of the current shape.
=SIBLINGS."Property 1"
→ [1, 2, 6]
The array of "Property 1" values of all siblings of the current shape.
=SIBLINGS."Property 2"
→ [10, 14]
The array of "Property 2" values of all siblings of the current shape.
In the example above, the "Property 2" shape data does not exist for shape "Shape 3", so no data is included for that shape in the resulting array.
=SIBLINGS."Property 3"
→ #ERROR!
The value of the shape data named "Property 3" on this shape. In the example above, the property does not exist, so the result is an error.
Updated 5 months ago