I'm creating a console program where the user has the option of making the output more verbose when the system processes their requests.
There will always be an output, but the verbose output would be an additional set of printing to the screen.
Making the output more verbose is a setting that they can change. It corresponds with a class variable.
Right now, verbose outputs are printed by using if statements throughout the entire program (essentially "if verbose output is on, print this statement"), but I feel like they are taking up too much space, and could be formatted better.
At the end of the day, I suppose it doesn't matter, but I am inexperienced when working on large programs. Is there a better way than using a slew of if statements related to a class variable?