Re: if with two conditions
- To: mathgroup at smc.vnet.net
- Subject: [mg108776] Re: if with two conditions
- From: David <deranen at gmail.com>
- Date: Wed, 31 Mar 2010 05:26:39 -0500 (EST)
- References: <hosi59$o49$1@smc.vnet.net>
On Mar 30, 1:01 pm, nt <sagittarius5... at gmail.com> wrote: > Hi all, > > 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? > > Thanks > nt Hello I believe this is what you're looking for: If[ a>b && a>0 , ... ] or in FullForm: If[ And[a>b, a>0] , ... ]