I am working on a packing slip that could go to multiple pages. I want to make the multiple pages different than the first. So what I have so far is this statement calling page 4 if they have 10 lines or less. I want to write it so that if the lines are greater than 10 it executes Page5 instead. I am not sure how to go about that. Any help and/or pushes in the right direction would be appreciated.
Thanks!
define(&pagecount,integer,0)
define(&i,integer,0)
&pagecount := &NumberOfLineItems/10
if( mod(&NumberOfLineItems,10)<>0 )
&pagecount:=&pagecount+1
endif()
for(&i,1,1,&pagecount)
execpage('Page4')
showpage()