VoxML 1.0 Element Reference

CASE Element

CASE Element

The CASE element is used to define the flow of control of the application, based on the values of internal VoxML variables.

The CASE element can be contained by a SWITCH element, or by an INPUT element, when using an INPUT type that collects a single value (i.e. DATE, DIGITS, MONEY, PHONE, TIME, YORN).

Syntax

<CASE VALUE="value" NEXT="value" [NEXTMETHOD="value"] />

Attributes

Attribute Name

Allowed Values

 

 

VALUE

literal value

 

 

NEXT

next step URL

 

 

NEXTMETHOD

GET *

 

POST

Examples

1 <SWITCH FIELD="pizza">

2<CASE VALUE="pepperoni" NEXT="#p_pizza"/>

3<CASE VALUE="sausage" NEXT="#s_pizza"/>

4<CASE VALUE="veggie" NEXT="#v_pizza"/>

5</SWITCH>

The code on lines 2-4 shows the use of the CASE element within the SWITCH element. In this example, the CASE elements are used to direct the browser to different URLs based on the value of the VoxML variable “pizza”.

October 1998

VoxML 1.0 Language Reference 11

Page 15
Image 15
Motorola 1 manual Case Element