<value>

<value>

The <value> element is used to insert the value of an expression into a prompt.

Attributes

Name
Data type
Description

expr

String

The expression to render.

Notes

None

Example

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <var name="test_var"/>
    <block>
      <assign name="test_var" expr="1234"/>
    </block>
    <block>
      <prompt>
        The test variable is set to <value expr="test_var"/>.
      </prompt>
    </block>
  </form>
</vxml>

The output of the above script would be:

Computer: The test variable is set to twelve hundred thirty-four.

Child Tags

None

Parent Tags

<audio>, <block>, <catch>, <emphasis>, <enumerate>, <error>, <field>, <filled>, <foreach>, <help>, <if>, <initial>, <log>, <menu>, <noinput>, <nomatch>, <paragraph>, <prompt>, <prosody>, <record>, <say-as>, <sentence>, <speak>, <subdialog>, <transfer>, <voice>

Last updated