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