SAPScript: Do not print LAST page if NEXT page is empty
I have a SAPScript with pages FIRST, NEXT, and LAST. The requirement is, if the content of FIRST does not spill over to NEXT, do not print the LAST page anymore. Is this possible to do?
Thank you very much.