MathGroup Archive 2009

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

Search the Archive

Text and multiple calculations in an IF condition


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