Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== < block > ====== ===== Description ===== The < block > element specifies a block of directives to be executed in the order given. ===== Syntax ===== <code> <block name="String" expr="ECMAScript_Expression" cond="ECMAScript_Expression"> child elements </block> </code> ===== Attributes ===== |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.| ===== Parents ===== <code> <form> </code> ===== Children ===== <code> <assign>, <audio>, <clear>, <disconnect>, <enumerate>, <exit>, <goto>, <if>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var> </code> ===== Extensions ===== <code> None. </code> ===== Limitations/Restrictions ===== <code> None. </code> ===== Example Code ===== <code> <?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> </code> developer_guide/voicexml_references/elements/block.txt Last modified: 2015/10/13 21:21by borja