Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13253 > unrolled thread

goto label, no loop, Mathematica 6

Started bybob <stefanie.schubert@whu.edu>
First post2013-01-23 04:18 +0000
Last post2013-01-23 04:18 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  goto label, no loop, Mathematica 6 bob <stefanie.schubert@whu.edu> - 2013-01-23 04:18 +0000

#13253 — goto label, no loop, Mathematica 6

Frombob <stefanie.schubert@whu.edu>
Date2013-01-23 04:18 +0000
Subjectgoto label, no loop, Mathematica 6
Message-ID<kdnoaf$71u$1@smc.vnet.net>
Hi,
I'd like to write down my model (several cells) and afterwards implement another version of that model. But as I use the same names for variables, Mathematica has to "forget" former assignments.

A solution woul be something like that (which I don't know how to do it in Mathematica unfortunately):

Switch=1   (*a variable that can be set to 1 or 2: tell matehmatica to read only Part 1 (or 2)*)
if Switch=2 goto label_switch2
Model Part 1 (several cells)
label_switch2
MOdel Part 2 (several cells)

But if I'm right, goto is usually used for loops, so that the order is label - goto; but not as required here: goto label

Thanks for any help!! 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web