Calculated data formula?

Post Reply
join
Member
Posts: 1
Joined: 26 Nov 2012 05:11

Calculated data formula?

Post by join »

Hello im trying to write a formula to calculate how manny users out of a certain group of users has a service sate = 3.

My thoughts were something like this but it doesnt seem to work at all, cant even get started cuz it wont accept my array.
(This is just an example of my train o' thoughts)

var ServiceState = new Array();
ServiceState[0] = AGENT1_SERVICESTATE;
ServiceState[1] = AGENT1_SERVICESTATE;
ServiceState[2] = AGENT1_SERVICESTATE;

int paused = 0;

for (var i=0;i<ServiceState.lenght;i++){
if (ServiceState = 3){
paused++;
}
}


Thanks in advance,
Joakim
Post Reply

Return to “Call Center SoftPanel (ALU ProServices)”