coolicepbx
Programmer
Is there any way in a loop to decrease the priority incrementally? The variable priority cannot be incremented and decremented? I have tried different variable types but it will not accept anything else than PRIORITY.
Here is what i had in mind....
SECTION PRIORITY_DECREASE
IF PRI_GV > 1 THEN
QUEUE TO SKILLSET electronics WITH PRIORITY PRI_GV
ASSIGN PRI_GV - 1 TO PRI_GV
END IF
PRI_GV is a global variable. In thoery this should work but I was not able to assign a value to PRI_GV and use it in the QUEUE TO command because it is not of variable type PRIORITY. Ideas?
thanks
Martin
Here is what i had in mind....
SECTION PRIORITY_DECREASE
IF PRI_GV > 1 THEN
QUEUE TO SKILLSET electronics WITH PRIORITY PRI_GV
ASSIGN PRI_GV - 1 TO PRI_GV
END IF
PRI_GV is a global variable. In thoery this should work but I was not able to assign a value to PRI_GV and use it in the QUEUE TO command because it is not of variable type PRIORITY. Ideas?
thanks
Martin