Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13260 > unrolled thread
| Started by | Tomas Garza <tgarza10@msn.com> |
|---|---|
| First post | 2013-01-24 06:17 +0000 |
| Last post | 2013-01-24 06:17 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: goto label, no loop, Mathematica 6 Tomas Garza <tgarza10@msn.com> - 2013-01-24 06:17 +0000
| From | Tomas Garza <tgarza10@msn.com> |
|---|---|
| Date | 2013-01-24 06:17 +0000 |
| Subject | Re: goto label, no loop, Mathematica 6 |
| Message-ID | <kdqjlr$3gf$1@smc.vnet.net> |
Bear in mind that Switch is a Mathematica function (cf. Help). Perhaps you could state your problem in more detail so that we could understand better what you're trying to achieve. -Tomas > From: stefanie.schubert@whu.edu > Subject: goto label, no loop, Mathematica 6 > To: mathgroup@smc.vnet.net > Date: Tue, 22 Jan 2013 23:18:27 -0500 > > 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!! >
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web