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
October 1998 | VoxML 1.0 Language Reference 11 |