if $F(statetax)=1 then
10.5 /100 * summary2
how i make it to works
Here's an example.
The value of the tax will be printed using the pPageTax internal parameter.
We can't use the value of summary directly so it is necessary to calculate it in the script, the SUM for one page will be stored in the report.page_sum property.