MathGroup Archive 2010

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

Search the Archive

Re: if with two conditions

  • To: mathgroup at
  • Subject: [mg108796] Re: if with two conditions
  • From: Manfred Plagmann <tamariki at>
  • Date: Thu, 1 Apr 2010 05:58:49 -0500 (EST)

Logical operators are && for AND and || for OR etc. Just string your logic together:

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

The documentation is your friend and will list all logical operators.

  • Next by Date: Export a vector
  • Next by thread: Export a vector