loop.getNumber is not a function

What can I do about this error: Uncaught TypeError: loop.getNumber is not a function With this snippet: var loop = 1; var date = Proto.getFieldValue(protoappt,‘Date__c’); // ACTION CODE - loop and set non default values while(loop != 10){ var row = Mass.createRow({ additionalConditions: [ {field: ‘Date__c’, value: date} ] }); loop.setNumber(loop.getNumber() + 1); date.setDate(date.getDate() +7); }

I’m an idiot - it was a data parsing issue between SF and JS date formats

Glad you figured it out, Griffin!