" /> Genesys Threshold Range - Genesys CTI User Forum

Author Topic: Genesys Threshold Range  (Read 2517 times)

Offline NCSC_User

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Genesys Threshold Range
« on: January 10, 2008, 06:43:11 PM »
Advertisement
Ok this is killing me.. seems like it should be easy but i can't seem to get it to work.

I'm trying to create a threshold that is true when the value falls between 1 and 10.

Here's what i have and it's not working.

if Threshold.StatValue >= 1 & Threshold.StatValue <= 10 then
    Threshold.Result = true
else
  Threshold.Result = false
end if

It returns true regardless of the value used to test.  Appears the & symbol only allows me to include both tests but doesn't work to combine the two in a Greater than 1 AND less than 10 statement.

Any thoughts?  I tried a cascading if then else as well but it timed out on me.  Mebby i wrote it wrong.

Something like If Threshold.StatValue >= 1 then
      If Threshold.StatValue <= 10 then
      Threshold.result = True
else
      Threshold.result = False
end if


Hellllllp! :(

Eugene

  • Guest
Re: Genesys Threshold Range
« Reply #1 on: January 10, 2008, 08:19:26 PM »
NCSC_User:

Try the following instead:


if Threshold.StatValue >= 1 & Threshold.StatValue <= 10 then
    Threshold.Result = true
end if

eugene