Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fault in Script 1

Status
Not open for further replies.

bigindian65

Technical User
Dec 27, 2006
4,597
0
0
US
This script sends a % of calls offsite. Works well, except it seems after the 6th call goes offsite the next call after that chokes and goes to the default SK, then it works, repeats pattern. Cannot tell what is making it fall out of script after reset.

READVAR counter

IF counter = 6 THEN
ASSIGN 0 TO counter

ELSE

IF counter = 0 THEN
ASSIGN 1 TO counter
ELSE
IF counter = 1 THEN
ASSIGN 2 TO counter
ELSE
IF counter = 2 THEN
ASSIGN 3 TO counter
ELSE
IF counter = 3 THEN
ASSIGN 4 TO counter
ELSE
IF counter = 4 THEN
ASSIGN 5 TO counter
ELSE
IF counter = 5 THEN
ASSIGN 6 TO counter




END IF
END IF
END IF
END IF
END IF
END IF
END IF
SAVEVAR

IF counter = 1 THEN
EXECUTE SCRIPT MEDCO
ELSE
IF counter = 2 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 3 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 4 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 5 THEN
EXECUTE SCRIPT MEDCO
Else
IF counter = 6 THEN
ROUTE CALL 91888xxxxxxx

END IF
END IF
END IF
END IF
END IF
END IF

Mato' Was'aka
 
It's because you haven't done anything for 0.
Add this to it...
IF counter = 0 THEN
EXECUTE SCRIPT MEDCO
ELSE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top