At 10:40 PM -0400 7/24/01, Troy Rollins wrote:
>No, they weren't "tab1" etc. I changed them in hopes to clarify the script
>goals. Thanks for the update on the process. I'll give it a try. (Fingers
>crossed) - but I still wonder, why didn't my approach work?

Because switch statements need breaks, or they don't exit. When tab1 is selected, this:

on menuPick tabSelect
  switch tabSelect
  case "tab1"
    answer "tab1"
  case "tab2"
    answer "tab2"
  end switch
end menuPick

Will first answer "tab1" and then answer "tab2" So just add a break like so:

on menuPick tabSelect
  switch tabSelect
  case "tab1"
    answer "tab1"
    break
  case "tab2"
    answer "tab2"
  end switch
end menuPick


Regards,

Geoff

Reply via email to