The #forpage statement is different from the others, as it does not contain any order. It can begin and end the statement in different text boxes. Its value can also be used in different text boxes. 
Valid use of the #forpage statement in ODP To use a structured statement such as #if, #macro, or #foreach with the #forpage statement, ensure that the statement is in the same text box.
 Valid use of #if and #foreach with #forpage statement Using an example from the previous figure, the generated result will be as follows: 
The end result of using #if and #foreach with #forpage statement. |