In reply to Re^2: Test for the last element in a foreach by smithers in thread Test for the last element in a foreach by tdevil76