VoiceGuide IVR Software Main Page
Jump to content

Cannot Evaluate An "or" Expression

Recommended Posts

I am assuming my syntax is incorrect when I try to evaluate this expression:

 

$RV[Enter #1] = 8 OR 6

 

This is the Event Trace Log Result:

 

220413.50 6 [Enter #1] Number Input

220413.52 6 [Enter #1] Playing (C:\Program Files\VoiceGuide\system\Voice Overs\3FOE1\1stnumber.wav)

220413.52 6 play set playid=447218

220413.61 6 PlaySoundStart ok [C:\Program Files\VoiceGuide\system\Voice Overs\3FOE1\1stnumber.wav]

220413.61 6 timer clear

220413.63 6 wa(2499,44721800)

220413.63 6 callinfo MONITORMODES

220416.14 6 wb(44721800)

220416.25 6 play end current play (playid=447218)

220416.27 6 ScriptEventCode 8001 iLineState=1300

220416.27 6 LsGetNbrsPlayWelcMsg EV_PLAY_FINISHED

220416.27 6 timer set 10 EV_TIMEOUT_HANGUP

220416.27 6 timer set 6 EV_TIMEOUT_ENTERDATA

220416.28 6 dtmf 8 (66474,56,2)

220416.28 6 ScriptEventCode 56 iLineState=1301

220416.30 6 LsGetNbrsRxDigits 8

220416.30 6 [Enter #1] Number Input 8

220416.30 6 path {8} not found

220416.31 6 timer set 6 EV_TIMEOUT_ENTERDATA

220416.31 6 timer clear

220416.31 6 rv add [Enter #1]{8}

220416.33 6 path {8} not found

220416.33 6 AddRVns [Enter #1_PathTaken]{success}

220416.33 6 timer clear

220416.33 6 [Enter #2] Number Input

220416.34 6 [Enter #2] Playing (C:\Program Files\VoiceGuide\system\Voice Overs\3FOE1\2ndnumber.wav)

220416.34 6 play set playid=450046

220416.42 6 PlaySoundStart ok [C:\Program Files\VoiceGuide\system\Voice Overs\3FOE1\2ndnumber.wav]

220416.42 6 timer clear

220416.44 6 wa(1998,45004600)

220416.44 6 callinfo MONITORMODES

220418.44 6 wb(45004600)

220418.55 6 play end current play (playid=450046)

220418.55 6 ScriptEventCode 8001 iLineState=1300

220418.56 6 LsGetNbrsPlayWelcMsg EV_PLAY_FINISHED

220418.56 6 timer set 10 EV_TIMEOUT_HANGUP

220418.56 6 timer set 6 EV_TIMEOUT_ENTERDATA

220418.95 6 dtmf 2 (66474,50,2)

220418.95 6 ScriptEventCode 50 iLineState=1301

220418.95 6 LsGetNbrsRxDigits 2

220418.97 6 [Enter #2] Number Input 2

220418.97 6 path {2} not found

220418.97 6 timer set 6 EV_TIMEOUT_ENTERDATA

220418.98 6 timer clear

220418.98 6 rv add [Enter #2]{2}

220418.98 6 path {2} not found

220419.00 6 AddRVns [Enter #2_PathTaken]{success}

220419.00 6 timer clear

220419.00 6 [Add Numbers] Evaluate [$RV[Enter #1] = 8 OR 6]

220419.00 6 rv replace start: [$RV[Enter #1] = 8 OR 6]

220419.02 6 rv ns [PathSysVoice]{}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[DNIS]{0000}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\Chances Are Script\Test Scripts\}[scriptPath]{C:\Program Files\VoiceGuide\Scripts\Chances Are Script\Test Scripts}[$RV_STARTTIME]{11/9/2004 10:04:13 PM}[$RV_DEVICEID]{6}[$RV_CIDNAME]{ }[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[Enter #1]{8}[Enter #1_PathTaken]{success}[Enter #2]{2}[Enter #2_PathTaken]{success}

220419.02 6 rv replace end: [8 = 8 OR 6]

220419.02 6 .Eval(8 = 8 OR 6)

220419.03 6 AddRVns [Add Numbers_Input]{8 = 8 OR 6}

220419.03 6 AddRVns [Add Numbers]{-1}

220419.03 6 Eval Expr result:[-1]

220419.05 6 path {-1} not found

220419.05 6 timer clear

220419.05 6 rv replace start: [$RV[Add Numbers]]

220419.06 6 rv ns [PathSysVoice]{}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[DNIS]{0000}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\Chances Are Script\Test Scripts\}[scriptPath]{C:\Program Files\VoiceGuide\Scripts\Chances Are Script\Test Scripts}[$RV_STARTTIME]{11/9/2004 10:04:13 PM}[$RV_DEVICEID]{6}[$RV_CIDNAME]{ }[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[Enter #1]{8}[Enter #1_PathTaken]{success}[Enter #2]{2}[Enter #2_PathTaken]{success}[Add Numbers_Input]{8 = 8 OR 6}[Add Numbers]{-1}

220419.06 6 rv replace end: [-1]

220419.06 6 [say Result] Say numbers: [-1] as Number

220419.08 6 fn PlaySoundStartNumbers [C:\Program Files\VoiceGuide\system\Voice Overs\you are the winner.wav],[],[-1],Number

220419.09 6 sVbsFunctionToUse=Number

220419.36 6 Started SayNumber VBScript OK. (C:\Program Files\VoiceGuide\data\vbs_6_SayNumber.vbs)

220419.39 6 cl Play_Start C:\Program Files\VoiceGuide\system\Voice Overs\you are the winner.wav,1.wav,minus.wav

220419.41 6 play set playid=453109

220419.55 6 PlaySoundStart ok [C:\Program Files\VoiceGuide\system\Voice Overs\you are the winner.wav,C:\Program Files\VoiceGuide\system\voice\1.wav,C:\Program Files\VoiceGuide\system\voice\minus.wav]

220419.56 6 timer clear

220419.56 6 wa(5394,45310902)

220419.58 6 callinfo MONITORMODES

220425.00 6 wb(45310902)

220425.11 6 play end current play (playid=453109)

220425.11 6 ScriptEventCode 8001 iLineState=1600

220425.11 6 LsSayNbrPlay EV_PLAY_FINISHED

220425.13 6 timer set 10 EV_TIMEOUT_HANGUP

220425.13 6 timer set 10 EV_TIMEOUT_HANGUP

220428.83 0 btn Hangup on line 6

220428.83 6 ScriptEventCode 9001 iLineState=1600

220428.83 6 LsSayNbrPlay EV_TIMEOUT_HANGUP

220428.84 6 rv add [Hangup Time]{11/9/2004 10:04:28 PM}

220428.84 6 Hanging up call...

220428.86 6 RecSoundStop ok

220428.88 6 PlaySoundStop err=0

220428.88 6 timer set 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

220428.91 6 fnHangupCall end

220428.95 6 linedevstate 2048 0 0

220428.95 6 callstate IDLE 66474 0 0

220428.95 6 WorkingMode@Idle=

220428.97 6 timer clear

220428.98 6 timer set 1 EV_TIMEOUT_TIMETOREINITLINE

220428.98 6 tapi Reply (LineEvReply) ok 66440 0

220430.00 6 timer fired EV_TIMEOUT_TIMETOREINITLINE

220430.00 6 ScriptEventCode 9008 iLineState=900

220430.00 6 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE

220430.02 6 ReinitTelephony due to IDLE

220430.02 6 tapic lineDeallocateCall(MainCall:66474) 0

220430.16 6 lineOpen(6)=>

220430.16 6 Waiting for a call...

 

 

I really want to evaluate something like this: $RV[Enter #1] = 8 OR 6 OR 2

 

But Voiceguide doesn't seem to pay attention to the "OR" operator. Why do I keep getting the wrong answers and what is the proper way to write this statement? How did Voiceguide evaluate this to get "-1"?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×