The < block > element specifies a block of directives to be executed in the order given.
<block name="String" expr="ECMAScript_Expression" cond="ECMAScript_Expression"> child elements </block>
name | This is the name of the block that can be referred within the form. This is optional and defaults to an inaccessible internal variable. |
expr | This attribute indicates the initial value of the block. The block will be visited only if the expression evaluates to “undefined.” This is optional and defaults to undefined. |
cond | This attribute is a Boolean condition that must evaluate to “true” in order for this block to be visited. This is optional and defaults to true. |
<form>
<assign>, <audio>, <clear>, <disconnect>, <enumerate>, <exit>, <goto>, <if>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var>
None.
None.
<?xml version="1.0"?> <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"> <form> <block name="first"> <prompt>This is a block</prompt> <goto nextitem="second"/> </block> <block name="second"> <prompt>This is another block</prompt> </block> </form> </vxml>