Select which parts of document to print

I have a fairly large document for my user documentation. Each customer has a specific sub-set of the document they require depending upon configuration.
Is there any way of selecting the parts of the document to print? The sections can be as large as a chapter and as small as a few lines.
Something like the C #if / #endif with variables used to make conditional decision would be ideal.

Hi

Sections can be hidden conditionally, for example based on the contents of a variable. This mechanism is described in this FAQ.

HTH - Regards

The operation shown performs fine for paragraphs but I need to select rows in a table for printing. Can this be done as I do not appear to be able to create sections in a table?