Initializing help system before first use

Accessing Array Entities

Array entities can have multiple indices, therefore they cannot be represented as plain arrays and are not accessed with the square brackets [ ] notation.

Instead, you need to call the array entity name as a function, passing the indices as parameters. Each array element is returned as an object with value and label properties.

Code editor
<vdl-section>
            <vdl-row>
                <vdl-column>
                    <span vdl-text="='Investment in highways: ' + scenario.entities.frac('highways').value"></span>
                </vdl-column>
            </vdl-row>
        </vdl-section>

View Designer

Accessing Array Entities in the View Designer