vdl-action-set-var
Set the value of a VDL variable. The new value will be returned.
Required parent element
Must be contained within one of the following elements:
Example
<vdl-var name="CurrentMyScalarValue" value=""></vdl-var>
<vdl-action-group name="captureCurrentMyScalar">
<vdl-action command="=scenario.entities.MyScalar.value"></vdl-action>
<!-- Because the value attribute isn't specified the VDL variable will be updated with the return value from the previous VDL action -->
<vdl-action-set-var var="CurrentMyScalarValue"></vdl-action-set-var>
</vdl-action-group>
Attributes
var | The name of the VDL variable. | required | |
---|---|---|---|
value | The value to set for the VDL variable. Can either be a dynamic expression or a static value. If the value attribute is not set then the current value from the VDL action group will be used. | accepts expression |