MathGroup Archive 2010

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

Search the Archive

Re: if with two conditions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108778] Re: if with two conditions
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Wed, 31 Mar 2010 05:27:01 -0500 (EST)

On 3/30/10 at 5:01 AM, sagittarius5962 at gmail.com (nt) wrote:

>Is there a way to build an if statement with two conditions such as:
>if[a>b and a>0,...]. If there is, could you let me know the syntax?

Either

If[a>b && a>0, ...]

or

If[And[a>b, a>0, ...]

will do what you want



  • Prev by Date: Re: if with two conditions
  • Next by Date: Re: if with two conditions
  • Previous by thread: Re: if with two conditions
  • Next by thread: Re: if with two conditions