title: How to loop through a list using indexes/indices in drools file
body: <p>I had a requirement to loop through a list using indices in drools file because I wanted to compare an value in the list to its next value in the list. One way was to use <code>from</code> keyword to get individual list items but I needed indices too</p>
  <pre><code> value : String() from $listOfString  
  </code></pre>