title: Jasper report - compare page_number and page_count
body: <p>How can we check the condition to compare the current page with a total no of the page in the <code>Jasper</code> report?
  I tried the following ways but no luck.</p>
  
  <pre><code>1. new Boolean(!$V{PAGE_NUMBER}.equals($V{PAGE_COUNT}) 
  2. $P{REPORT_PARAMETERS_MAP}.get("isLastPage") == null
  </code></pre>
  
  <p>I am having two-footer, first one should print in all the pages and the second one should print on the last page only.</p>
  
  <p>no luck.</p>
  
  <p>Any idea?</p>
  
  <p>Thanks</p>