3.10. elseif

Element typeelseif
Attributescond
Parentsif
ChildrenNone.
DescriptionDeclares the beginning of an "else-if code block" within an if element. All elements within the if element after the elseif element but before the next elseif or else elements are executed only if the if element's cond attribute and all subsequent elseif elements' cond attributes all evaluate to false and the elseif element's cond attribute evaluates to true.

DTD

<!ELEMENT elseif EMPTY >
<!ATTLIST elseif 
  %if.attrs; >

Language model

Attributes

cond : expression

An ECMAScript expression. If it evaluates to true, the elements after the elseif and before the next elseif ...

Get Definitive VoiceXML™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.