Ok.

Just use the scriptlet I posted previously as a skeleton, and add all the "Case" sections you need.