cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
595
Views
5
Helpful
2
Replies

UCCX Scripting, working with variables (re-type variables?!?)

Mark Verwey
Level 1
Level 1

I have a script that I am getting string variables from an API call, then need to run a check to see which value they have been set to, they can be either a P, E, C, B, or empty.  I have written the script with 5 IF statements, one for each variable with the false for all but the last one sending that to the next IF statement.  The True side is when there is a match.  Is it possible to combine all 5 of these IF's into 1 statement?  The variable I collect is a String value and I don't know of anyway to do this currently, hoping someone else does.

 

Mark

1 Accepted Solution

Accepted Solutions

Anthony Holloway
Cisco Employee
Cisco Employee

The Switch Step will do that for you. 

View solution in original post

2 Replies 2

Anthony Holloway
Cisco Employee
Cisco Employee

The Switch Step will do that for you. 

I had completely forgotten about using Switch Step, thanks works like a charm.