How to Mute Animation Nodes Subprogram
EDIT: New Version

Same Principle, but how about ditching additional Subprogram and using Get List Element instead:

Old Version

I put actual Subprogram(red) inside another one (blue) as a Parameter to get ability to dynamically change number of iterations. Condition is controling execution of blue Subprogram

New:


Old: