Instead of reinventing the wheel, the VoiceXML committee decided to use ECMAScript wherever scripting was needed. Some examples are:
These are blocks of ECMAScript to be executed by the VoiceXML interpreter.
if and elseif conditions
The cond attribute of the if and elseif elements contains an ECMAScript expression that evaluates to a boolean. ...