Spawn pages / delete pages depending on checkbox
I have a 4 page assessment - when completed it has a button to generate a 2 page report. One of the report's pages is called 'report 1', the other is called 'spasticity'. If a checkbox on the final page of the assessment is checked, 'spasticity' should be spawned, if not checked, 'report1' should be spawned. The other page in the report should be spawed either way. The following step is to print these 2 pages as a separate PDF, then delete both pages, leaving the 4 page assessment. I've tried an if/else I thought would be simple but cannot get it to work. Any advice would be great, thanks!!
