Does anyone out there know of a way to have conditional blocks in LaTeX that are controllable by external parameters?
The sort of thing I want to do is something like:
\configurablesection{someparameter_1}
some stuff here (this is block1)
\configurablesection{someparameter_2}
some different stuff here (this is block2)
Then, from the command line, set a parameter to include the text in block 1 AND/OR in block2, and produce different output as a consequence.
Any pointers welcomed!

If no latex guru shows up you can consider preprocessing the files with python (and setting the output files to read-only, so you don’t forget and end up editing a generated file)
I’ve considered that, but was trying to avoid using something other than latex.
I have actually found a way to do conditional blocks now, but it doesn’t appear to work all the time… annoyingly.