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:foreach [2015/10/27 12:36] (current) – created borja | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== < foreach > ====== | ||
+ | ===== Description ===== | ||
+ | |||
+ | Iterates through an ECMAScript array of items. New in VoiceXML 2.1. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | < | ||
+ | <foreach | ||
+ | array = " | ||
+ | item = " | ||
+ | /> | ||
+ | </ | ||
+ | |||
+ | ===== Attributes ===== | ||
+ | |||
+ | |array|An ECMAScript expression that evaluates to an array. Required.| | ||
+ | |item|The variable that stores each array item upon each iteration of the loop. Required.| | ||
+ | |||
+ | ===== Parents ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Children ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Extensions ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Limitations/ | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Example Code ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | <?xml version=" | ||
+ | <vxml version=" | ||
+ | | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <value expr=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ |