How to generate different blocks based on parameter?

In reply to forgi007:

Hard to know what you are trying to accomplish without a minimal example that can actually be compiled.