I've created an automatic report for my company that gets some input datasets and automatically returns a data analysis report with texts, figures, tables, and some data analysis results. Depending on the type of the input datasets, the data analyses performed for them might be different. Therefore, what I need to do is to put all of the analyses in the LYX and somehow come up with a way to put some conditional statements for different sections. For instance, suppose based on the input dataset, I should skip section 1 and section 3, is there any way to do it in LYX?
I really appreciate your help.