Can anyone tell me why this isn't working?
I am getting a syntax error. I am trying to do is get a Total sum of the debits that are triggered as Pending charges.
var status = @All of Processing Status;
var debit = @All of Debit;
var total = 0;
for(var i = 0; i < debit.length; i++) {
if(status[i] == " PENDING"){
total += debit[i][0] || 0;
}
total
Please sign in to leave a comment.
Comments
1 comment