O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.22. if

Element typeif
Attributescond
Parentsblock | catch | error | filled | help | if | noinput | nomatch
Childrenassign | audio | clear | disconnect | else | elseif | enumerate | exit | goto | if | log | prompt | reprompt | return | script | submit | throw | value | var
DescriptionAn executable element implementing the if-then-else conditional logic.

DTD

<!ENTITY % if.attrs 
  "cond  %expression; #REQUIRED" >

<!ELEMENT if (%executable.content; | elseif | else)* >
<!ATTLIST if
  %if.attrs; >

Language model

Attributes

cond : expression

An ECMAScript expression that evaluates to a boolean. If it evaluates to true, the contents within the if element will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required