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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested IF in Symposium script

Status
Not open for further replies.

BikeTours

Technical User
Dec 28, 2004
63
CA
I have never seen this done in Symposium scripting so I wonder if it is possible. We are setting up a new service and have only a limited number of agents to address the call. These agents are more often than not logged out.

Typically most of the scripts send that call to a closed situation if no agents are logged in; the caller gets a prompt and is disconnected. I have had a request to change that, to instead send that call to another group where it is more likely someone is available to pick up.

So basically I have the following:
If no agents with skillset A logged in send the call to agents with Skillset B. If no agents with skillset B are logged in then disconnect.

I would like to use a nested IF structure of the following type but I find it doesn't work. Symposium will not validate and it points to the second ASSIGN statement as the error.

ASSIGN PRODUCT_A TO skillset_choice

IF OUT OF SERVICE skillset_choice

ASSIGN PRODUCT_B TO skillset_choice

IF OUT OF SERVICE skillset_choice THEN

EXECUTE NOT_AVAILABLE

END IF

END IF

any suggestions?
 
Try this:

IF NOT OUT OF SERVICE skillset_A THEN
QUEUE TO SKILLSET skillset_A
WAIT 2
ELSE
IF NOT OUT OF SERVICE skillset_B THEN
QUEUE TO SKILLSET skillset_B
WAIT 2
ELSE
EXECUTE NOT_AVAILABLE
END IF
END IF
 
You should just have to add "THEN" to the end of your first IF line.
 
Formatting like Sandy has done helps simple issues stand out (like missing a THEN or END IF).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top