Re: Text and multiple calculations in an IF condition
- To: mathgroup at smc.vnet.net
- Subject: [mg101029] Re: [mg100958] Text and multiple calculations in an IF condition
- From: peter <plindsay.0 at gmail.com>
- Date: Sun, 21 Jun 2009 07:06:44 -0400 (EDT)
- References: <200906190047.UAA18647@smc.vnet.net>
the word you need to search for in the documentation is "comment", as in "commenting code". Typing "comment" into the documentation centre gives a fewf links. You then choose "The Syntax of the Mathematica Language (Mathematica Tutorial)" and near the top of that page you'll see: (*comment*) input to be ignored 2009/6/19 Pascal Schulthess <mail at pascal-schulthess.de>: > Hi everybody, > > I have a small problem, and haven't found any solution yet. So I hope you > can help me. > > I'd like to have describing text, comments and multiple calculations when > one condition is true, and others when it's false. > > For example: > > If[a>b, > do something here; > and something else here; > insert a text here; > else > do something; > and more; > ] > > As far as I tried this is not possible with the if condition provided?! > But I also think this quite easy to do, if you know how to. > > Thanks for your help. > > Pascal > > -- Peter Lindsay
- References:
- Text and multiple calculations in an IF condition
- From: Pascal Schulthess <mail@pascal-schulthess.de>
- Text and multiple calculations in an IF condition