Initializing help system before first use

Working with the vdl-text Attribute

Use the vdl-text attribute can be assigned to any VDL or HTML tag that allows child text and is used to display values that may change at any time.

Such values may be Mosel entity values, view globals or the result of script calculations - or any combination of these.

To display the number of scenarios on the shelf:
<span vdl-text="=scenarios.length"></span>
vdl-text accepts any valid VDL 4.1 expression and always attempts to display a sensible text representation of the expression's returned value.
A simple fixed calculation:
<h1 vdl-text="99 * 88 + 77"></h1>
The value of a scalar entity:
<div vdl-text="=scenario.entities.StringScalar.value"></div>
A combination of strings, a scalar value and a single element of an array entity:
<p vdl-text="= 'This value: ' + 
                        scenario.entities.ThisValue.value + 
                        ' and that: ' +
                        (scenario.entities.StringArray(2) ?
                        scenario.entities.StringArray(2).value : '')">
</p>