Define $.each for a model based on filter criteria

Use case:
Define an array of rows on a model given 2 conditions then update rows with value 'myValue’

For given conditions:
ApptID__c = XXXX
DateA > DateB


$.each(myModel.data, function (i, row){
myModel.updateRow(row,myField, myValue);
});


How do I limit the rows based on my conditions?

$.each(myModel.data, function (i, row){ <br>if(row.ApptId__c === XXXX &amp;&amp; row.DateA &gt; row.DateB){<br>myModel.updateRow(row,myField, myValue);<br>}<br>});

How much do they pay you Moshe?

That’s a good question… : )

Thanks Moshe! We do very much appreciate our champions.  Hopefully undying gratitude is sufficient compensation.  


We might just have to put that on a Tee Shirt!