Your code example seems quite confused and not very specific as to whatconstitutes the model.

First, you can't use Switch as a variable since it is a Mathematicafunction, which you might actually use.

I'm not quite certain about the use of Goto but I don't think you could useit to transfer between notebook cells. You have to use it within a singlecell, or within a compound statement, or within a Module as is shown on theHelp page for Goto.

Goto may have a few uses but is not generally a good programming method. Youcould try something like this: