continue



Function: continue()

If used within a forEach() loop then the forEach() function will stop processing script lines within the current iteration of the loop and will move on to the next value in its driving list (the second parameter to the forEach() function). If there is a next value in the driving list, the script processing will continue from the first statement in the forEach() script.

If used within a do() function then the do() function will immediately return with a _NULL value.

Syntax

continue()

Examples

forEach( $customerType, customers.type, $total = $total + 1, if( $customerType == "Business", continue() ), $nonBusiness = $nonBusiness + 1 )

This example keeps track of the total number of customers found on the Pipe customers and also on the number of non-business customers. This happens because if the $customerType is equal to "Business", the continue() statement is executed and the script does not process the line $nonBusiness = $nonBusiness+ 1 but moves directly on to the next $customerType in the customers.type list.

See Also