foundset.forEach() Continue Statement not Supported?
Posted: Tue Apr 17, 2018 7:06 pm
Version: 8.2.3.3109
It appears that the Foundset Iterator loop structure does not support the continue statement to force advancement to the next record. When I attempt to use it, I get the following marker message:
So, how do you skip processing a record in the foundset.forEach() loop?
e.g. Say a record fails a validation test and you want to go to the next record:
Thank you.
It appears that the Foundset Iterator loop structure does not support the continue statement to force advancement to the next record. When I attempt to use it, I get the following marker message:
The property continue is undefined for the type JSFoundset
So, how do you skip processing a record in the foundset.forEach() loop?
e.g. Say a record fails a validation test and you want to go to the next record:
- Code: Select all
foundset.forEach(
/**
* @param {JSRecord} record
* @param recordIndex
* @param {JSFoundset} fs
*/
function(record, recordIndex, fs)
{
if ( !validate( record ) foundset.continue
...
}
);
Thank you.