The error I'm receiving is:
invalid assignment left-hand side line 1
SyntaxError: invalid assignment left-hand side line 1
Is there something wrong with my "retry_Counter" or "try_Limit" variable names? I've declared them outside of any form in this way:
<var name="retry_Counter" expr="1" />
<var name="try_Limit" expr="6" />
thus, they should be accessible by any form on the page, correct?
Thanks for any help!
Code: Select all
<form id="replayMsg">
<field name="repSpeakingTo">
<grammar src="builtin:grammar/boolean"/>
<grammar src="builtin:dtmf/boolean" />
<prompt>
<audio expr="yesNoUrl">
For Yes, press 1 or Say Yes. For No, press 2 or Say No.
</audio>
</prompt>
<filled>
<if cond="repSpeakingTo==1 || repSpeakingTo=='Yes' || repSpeakingTo='true' ">
<prompt>Continue survey.</prompt>
<elseif cond="repSpeakingTo==0" />
<assign name="retry_Counter" expr="retry_Counter+1" />
<prompt>Wait some more.</prompt>
<goto next="#SubIsAvailable" />
</if>
</filled>
</field>
</form>
<form id="SubIsAvailable">
<block>
<if cond="retry_Counter < try_Limit">
<prompt>
<audio expr="waitForSub2Url">
OK. Please ask this person to come to the phone.
<break time="6s" />
Hello. This is the Center calling. Am I speaking to?
</audio>
</prompt>
<prompt>
<sentence><say-as type="name"><%=IVRCall.subName.ToString()%></say-as></sentence>
</prompt>
<goto next="#replayMsg" />
<else />
<prompt>Exceeded try limit.</prompt>
</if>
</block>
</form>