tags:

views:

57

answers:

1

I'm sorry that this is probably a really basic question but I'm just beginning to program. Basically I need to increment a counter in VXML.

I've declared the counter as:

and in an IF statement I've incremented by doing this: the second assign tag increments the counter.

Thank you I have recognised a school

Is that concept correct?

Thanks for any help!

+1  A: 

I think information was left from your question. I believe you asked if:

<var name="counter" expr="0"/>
...
<if ...>
    <assign name="counter" expr="counter+1"/>

Yes, that is one way to increment a counter. You can also perform your logic directly in ECMAScript within a element.

Jim Rush