legacy:vxi_developer_guide:voicexml_references:elements:block

< block >

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>
nameThis is the name of the block that can be referred within the form. This is optional and defaults to an inaccessible internal variable.
exprThis 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.
condThis 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>
  • legacy/vxi_developer_guide/voicexml_references/elements/block.txt
  • Last modified: 2017/07/28 23:53
  • by javier