Reduce the code
Posted: Mon Aug 10, 2009 8:07 am
Hi,
I've a field wich have the nomatch tag follow:
The "nomatch" and "nomatch count="2" are identicals excepts the audio file name ("retry.wav" and "new.wav").
How can I write this code more simply?
I've a field wich have the nomatch tag follow:
Code: Select all
<nomatch>
<if cond="maxspeech==false">
<audio src="media/error.wav" />
<assign name="error" expr="true" />
</if>
<if cond="error==true">
<audio src="media/avertissements/new.wav" />
</if>
<assign name="set_phone" expr="undefined" />
<reprompt />
</nomatch>
<nomatch count="2">
<if cond="maxspeech==false">
<audio src="media/error.wav" />
<assign name="error" expr="true" />
</if>
<if cond="error==true">
<audio src="media/avertissements/retry.wav" />
</if>
<assign name="set_phone" expr="undefined" />
<reprompt />
</nomatch>
How can I write this code more simply?