How can I repeat sections with the conditions without having to manually repeat everything?