3

I am try to use "logical and" in voicexml(with Viecore extensions)

Here is my code:

<if cond="(menuChangeOn == 'YES')&&(businessGroup == '<%=Viecore.ABCCompany.DataAccess.Constants.CURRENT_MODULE.Main_Number%>')">

The "&&" seems to cause trouble while the voice xml file is parsed.

What's the best practice to resolve this common problem?

niton
  • 8,771
  • 21
  • 32
  • 52
Jiao Yu
  • 110
  • 1
  • 5
  • BTW, you are using server templates which is not pure VoiceXML. You should rather post the resulting VoiceXML. – gawi May 25 '13 at 20:30

1 Answers1

3

It XML, so you must use XML entities &amp; for the ampersand symbol. So instead of &&, use &amp;&amp;.

gawi
  • 13,940
  • 7
  • 42
  • 78