Page 1 of 1

multiple elseif's

Posted: Tue Feb 06, 2007 4:02 pm
by brent.russell
I can never get to number 3 for some reason however I can do # and 2. for number 3

Code: Select all

<filled>
	  <if cond="confirmMenuChoice=='#'">
		<goto next="#hangUp"/>
	  <elseif cond="confirmMenuChoice==2"/>
		 <goto next="#moreinfo"/>
	  <elseif cond="confirmMenuChoice==3"/>
		 <goto next="main_menu.vxml"/>
	  </if>
</filled>
<nomatch count="1">
  <prompt>you entered an invalid option</prompt>
  <reprompt/>
</nomatch>
Am I doing my if statement wrong? I read the documentation and it did not give an example of multiple elseif's... just an else. I can't use an else in my situation.

Thank you

Posted: Tue Feb 06, 2007 4:54 pm
by brent.russell
This was my mistake. The else if was working all along. i was not allowing the other numbers as choices due to my grammars


Thank you