MathGroup Archive 2010

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

Search the Archive

Re: if with two conditions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108784] Re: if with two conditions
  • From: dr DanW <dmaxwarren at gmail.com>
  • Date: Wed, 31 Mar 2010 05:28:07 -0500 (EST)
  • References: <hosi59$o49$1@smc.vnet.net>

You almost had it.

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

There are a number of ways to write it

If[ (a>b)~And~(a>0), ...],

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

Most people like the last one.

Daniel


  • Prev by Date: Re: 0/1 knapsack-like minimalization problem and file system access
  • Next by Date: Re: if with two conditions
  • Previous by thread: if with two conditions
  • Next by thread: Re: if with two conditions