<block>

Description

Specifies executable content to be executed in document order.

Syntax


<block name="string" expr="ECMAScript_Expression" cond="ECMAScript_Expression"> child elements </block>

Attributes

Attribute

Description

name

The name of this block.  This variable can be referenced anywhere within the block's form. Optional. (Defaults to an inaccessible internal variable.)

expr

An ECMAScript expression to be evaluated and used as the initial value of this block.  This block will be visited only if the expression evaluates to undefined. Optional. (Defaults to undefined.)

cond

An ECMAScript expression to be evaluated and used as a boolean condition.  This block will be visited only if the expression evaluates to true. Optional. (Defaults to true.)

Attribute Notes

None

Parents

Form

Children

Assign Clear Data Disconnect Exit ForEach Goto If Log Prompt Reprompt Return Script Submit Throw Value Var #PCDATA

VoiceGenie Extensions

None

Limitations/Restrictions

None

Example


<?xml version="1.0"?> <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"> <form> <block name="first"> This is a block. <goto nextitem="second"/> </block> <block name="second"> This is another block. </block> </form> </vxml>