Alternating brick pattern

Im looking for a way to write a script that would create a brick layout pattern for various brick patterns while having the same script work for each one. IE adjust a slider from 1>2 and it would switch from a stacked bond to a 1/2 offset running bond. Then moving the same slider from 2>3 would go from a 1/2 running bond to a 1/3 running bond. I can do each of them on their own easily enough, but have no idea how I would go from one to another in the same definition. I was able to successfully come up with two options for stacked in the attached, but agian, no idea what to do to make option at index 2 a 1/2 running bond.
211230_brick-options.gh (20.3 KB)