Hello, thank you for your reply. This is what my template looks like. I deleted a lot of elements to send it to you, but it should work the same.
We have the "if" condition with the section break :
Then I have a table and another section break :
Finally, the landscape page with a table :
If we do not enter the condition, I do not have the last two pages as wanted but then my pages end up in landscapes