Genesys Threshold Range

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! :frowning:

1 Like

NCSC_User:

Try the following instead:

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

eugene