Sometimes a given output channel does not need to be generated or there is a need to prevent the generation of an output channel based on a various criteria in an if-statement. This can be achieved by using the following statement in the given output channel:
$CMS_SET(#global.stopGenerate, true)$
Using this statement the whole output channel will not be generated.