title: Get next element in foreach loop
body: <p>I have a foreach loop and I want to see if there is a next element in the loop so I can compare the current element with the next. How can I do this? I've read about the current and next functions but I can't figure out how to use them.</p>
  
  <p>Thanks in advance</p>