title: Jasper Page break on New Field/Variable
body: <p>I am working on a jasper report, and I am trying to figure out a way for the report to page break on a variable change.  The variable is actually a Field, and I put the value of the field in a variable.</p>
  
  <p>Now, the Jasper Reports website has an example on how to break it by count like this</p>
  
  <pre><code>&lt;groupExpression&gt;&lt;![CDATA[new Boolean($V{BreakGroup_COUNT}.intValue()
  &gt; 5)]] &gt;&lt;/groupExpression&gt;
  </code></pre>
  
  <p>However, I am not sure of any way to compare the previous or next value and breaking after that.  </p>