Hi Khalil,

Did you try this

IF ( (ledgerJournalTable.JournalName == "BPV")
       || (ledgerJournalTable.JournalName == "VEN_INV") )

Note the number of paranthesis.

Regards,
Sumit

On Thu, Apr 9, 2009 at 2:26 PM, Khalil Rehman <khalilrehm...@hotmail.com>wrote:

>
>
>
>
>    *KHALIL UR REHMAN *
>
> Dear Sumit
>
>    this condition also gives me Syntax Error. anyother solution.
>
> regards.
>
> Khalil
>
>
>
>
> ------------------------------
> To: Axapta-Knowledge-Village@yahoogroups.com
> From: loya.su...@gmail.com
> Date: Thu, 9 Apr 2009 12:59:25 +0530
> Subject: Re: [Axapta-Knowledge-Village] Re: URGENT: OR condition in method.
>
>
>
> Hi Khalil,
>
> Didnt notice that you need this OR in IF condition... Gave you the solution
> for select statements.
>
>
> Yes you can use or as shown by Santosh
>
> Regards,
> Sumit
>
> On Thu, Apr 9, 2009 at 12:02 PM, r_ssh <ramamurthy.sant...@gmail.com>wrote:
>
>
>
> Hi Khalil Rehman,
>
> Example: To add OR condition in a IF condition.
> if(ledgerJournalTable.JournalName ==
> "BPV")||(ledgerJournalTable.JournalName == "VEN_INV")
>
> Thanks
> Santosh.R
>
> --- In Axapta-Knowledge-Village@yahoogroups.com, Khalil Rehman
> <khalilrehm...@...> wrote:
> >
> >
> > Dear All,
> >
> >
> >
> > how we can add OR Condition in IF Condition
> >
> >
> >
> > e.g. if (ledgerJournalTable.JournalName == "BPV") or
> (ledgerJournalTable.JournalName == "VEN_INV")
> >
> >
> >
> >
> > so how we can add OR condition in between two conditions.
> >
> >
> >
> > your urgent reply is needed.
> >
> >
> >
> > thanks in advance.
> >
> >
> >
> > KHALIL UR REHMAN
> >
> >
> >
> > __________________________________________________________
> > Invite your mail contacts to join your friends list with Windows Live
> Spaces. It's easy!
> >
> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
> >
>
>
>
>
>
>
> ------------------------------
> check out the rest of the Windows Live™. More than mail–Windows Live™ goes
> way beyond your inbox. More than 
> messages<http://www.microsoft.com/windows/windowslive/>
>
> 
>

Reply via email to