developer_guide:voicexml_references:elements:block

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


developer_guide:voicexml_references:elements:block [2015/10/13 21:21] (current) – created borja
Line 1: Line 1:
 +====== < 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:21
  • by borja