Guest Ron Report post Posted 11/08/2005 03:56 AM I run a program that returns a file called SHLRESLT.TXT . It writes $RV[successVal]{10} to that file. I then use a evaluate module to decide which path to take. I think this is where I am going wrong, althoug I have tried everything I can think of. Here is that portion of script. How do I get my variable's value into $RV[successVal] and branch accordingly. [Run Program 1] Type=Run Program DispSize=69 Txt=Run the program, and read in the results file created. The results supplied can then be used in other parts of the script (see Result Variables). ProgramToRun=C:\Program Files\WatchDog\VGWDVal.exe RunHoldPlay= RunMode=1 RunWait=1 on {success} goto [Evaluate1] on {fail} goto [Evaluate1] Position=267,42 [Evaluate1] Type=Evaluate DispSize=69 Txt=Evaluate the Result Variable specified, and select the path which matches the current value of the Result Variable Expression=$RV[successVal] ExprNewRV= ExprStoreRV=0 ExprStoreInGlobalRV=0 on {11} goto [successit] on {10} goto [FailedIt] This is the relevent part of the trace 223954.30 6 Found result file: C:\Program Files\WatchDog\SHLRESLT.TXT 223954.30 6 rv lg add [Run Program 1]{} 223954.30 6 Run Result [$RV[successVal]{10}, ] 223954.30 6 task completed LsRunWaitChooseNext iNextVgm=7 223954.30 6 timer clear 223954.30 6 state [Evaluate1] Evaluate [$RV[successVal]] 223954.30 6 rv replace start: [$RV[successVal]] 223954.30 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\WatchDog\}[scriptPath]{C:\Program Files\WatchDog}[$RV_STARTTIME]{11/7/2005 10:39:42 PM}[$RV_DEVICEID]{6}[$RV_CIDNAME]{VIKING ELECTRON}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{7153868861}[$RV_DNIS]{0000}[DNIS]{0000}[Run Program 1]{} 223954.30 6 rv replace end: [] 223954.31 6 .Eval() 223954.31 6 rv ns add [Evaluate1_Input]{} 223954.31 6 rv ns add [Evaluate1]{} 223954.31 6 Eval Expr result:[] 223954.31 6 path {} not found Share this post Link to post
Guest Guest Report post Posted 11/08/2005 05:24 AM OK I found the problem. Mostly it was from working to late :-) Share this post Link to post
SupportTeam Report post Posted 11/08/2005 06:19 AM The answer for those who want to know is that the Result File should contain: [successVal]{10} and not: $RV[successVal]{10} Share this post Link to post