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 |
|
cond |
An ECMAScript expression to be evaluated and used as
a boolean condition. This block will be visited only if
the expression evaluates to |
Attribute Notes
error event may be thrown if a
reserved ECMAScript word is
used as the name.
Parents
Children
<assign>, <audio>, <clear>, <data>, <disconnect>, <exit>, <foreach>, <goto>, <if>, <log>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var>, #PCDATA
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> |