That's a little different than your original question, which was to conditionally create a file. I can't quite see what you're doing with the Boolean control, but for one thing, there's no need to convert the Boolean to a number, and then check to see if it's greater than 1. Just wire the Boolean directly to the case structure! Same thing!
It seems that you're now asking that you want the Boolean to not only disable the conditional create, but also to turn off all writing. In this case, you have to wrap each write with a case that's driven by the front-panel Boolean.
Tip: In the loop you seem to be wanting to add a EOL to each number and using a loop to do it. Just use the Write to Spreadsheet File function. This will allow you to wire the numerical array directly without needing to use a loop.