cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
574
Views
0
Helpful
1
Replies

How to see programming Code for UCCX Script

hamed1900
Level 1
Level 1

Hi All,

How can I  see the programming Code for UCCX Script? I have a script and want to see its Code , something like :

int sum = 0;

boolean alternate = false;

boolean isValid = false;

try {

int i = 0;

for (i = ccnumber.length() - 1; i >= 0; i--) {

  int n = Integer.parseInt(ccnumber.substring(i, i + 1));

  if (alternate) {

   n = n * 2;

   if (n > 9) {

    n = (n % 10) + 1;

   }

  }

  sum += n;

  alternate = !alternate;

}

isValid = (sum % 10 == 0);

} catch (Exception e) {

return -1;

}

return (isValid == true ? 1 : 0);

thanks,

Hamed

1 Reply 1

david.macias
VIP Alumni
VIP Alumni

You're not going to find code per se, unless you have some java class you wrote and then you would only see the code if you had the source java file.  The script is the only interface you get for "code".

david