We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

multiple elseif's

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
brent.russell
Posts: 50
Joined: Wed Oct 04, 2006 1:34 pm
Location: SOCAL
Contact:

multiple elseif's

Post 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

brent.russell
Posts: 50
Joined: Wed Oct 04, 2006 1:34 pm
Location: SOCAL
Contact:

Post 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

Post Reply