ElementIsComponent
ElementIsComponent determines whether element1 is a child of element2 in the specified dimension. The function returns 1 if element1 is a child of element2, otherwise the function returns 0.
This function is valid in both rules and TurboIntegrator processes.
Syntax
ElementIsComponent(dimension, hierarchy, element1, element2)
Argument |
Description |
---|---|
dimension |
A valid dimension name. |
hierarchy |
The name of the hierarchy within the dimension. |
element1 |
The name of an element within the dimension. |
element2 |
The name of an element within the dimension. |
Example
In the dimension Region, the element Central Europe is a consolidation of two elements, Germany and France. The example returns 1.
Note: this function returns 1 only for immediate children. In the previous example,
Germany is a child of Central Europe. Further, Central Europe is a child of Europe.
ElementIsComponent('Region', 'Countries', 'Germany', 'Central Europe')
However, because the function returns 1 only for immediate children, the following example returns 0:
ElementIsComponent('Region', 'Countries'', 'Germany', 'Europe')