Announcement

Collapse
No announcement yet.

IVR String Comparison

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IVR String Comparison

    I'm trying to compare a DTMF string using IVR and am having problems.

    I need to check that the DTMF number entered is between a lower and upper bound.

    I tried the following:
    IF:$DTMF>59;NEXT:;GOTO:INVALID_ENTRY
    IF:$DTMF<100;NEXT:;GOTO:INVALID_ENTRY
    # Number is OK here
    SPEAK:Your entry was valid
    ....

    LABEL:INVALID_ENTRY
    SPEAK:Your entry was not valid

    Can greater than (&gt and less than (&lt be used for DTFM string comparisons? If not, does anybody have any ideas as to how to do this comparison in IVR (maybe using VBSCRIPT?

    Thanks,
    Doug Woolridge

    #2
    Comparing $DTMF only works with "=". However, I have no problem adding <>. I'll add it to the next update.

    -Rich
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Thanks for the reply Rich.

      1) Just so it's clear, that was the greater-than and less-than functions I was looking for, not "UnEqual <>".

      2) Thanks for adding it to the next release.

      3) I'm in a bit of a hurry to get this working--any suggestions as to how I might accomplish the same comparison through other means in an IVR script?

      Thanks,
      Doug Woolridge

      Comment


        #4
        Doug,

        I emailed you a ver with the change.

        -Rich
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Go it!

          Thanks again for the quick response. I installed it tonight and everything seems to work.

          Doug

          Comment

          Working...
          X