Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: ejonesAnother idea, depending on what you need, could be to allow the all the nodes to run, but make the input data stream to your composite contain zero records unless the number of records is what you want.
To make the data stream contain zero records you could use a Lookup node. Pass the record count into the second input and in the BrainScript only pass the data through "where '2:record_count' >= 21"