MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Text and multiple calculations in an IF condition

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100958] Text and multiple calculations in an IF condition
  • From: Pascal Schulthess <mail at pascal-schulthess.de>
  • Date: Thu, 18 Jun 2009 20:47:10 -0400 (EDT)

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


  • Prev by Date: Re: Help with Hold
  • Next by Date: Re: Strange Solve result after previous bad input
  • Previous by thread: Re: Strange Solve result after previous bad input
  • Next by thread: Re: Text and multiple calculations in an IF condition