IIF - 2or+ conditions

Stimulsoft Reports.WEB discussion
Post Reply
brjohnsmith
Posts: 35
Joined: Mon Jan 29, 2018 11:04 am

IIF - 2or+ conditions

Post by brjohnsmith »

Hi,

How can I do to use IIF with more than one condition. for example, if I want to test the values, A, B, C = x,
{IIF(xxxxx=="A" <-- how can I use OR for B, and C

IIF(xxxxx=="A" || xxxxx=="B" || xxxx="C", "x", .......

Do I use || as OR, but how would be the syntax?

thank you.
Lech Kulikowski
Posts: 7338
Joined: Tue Mar 20, 2018 5:34 am

Re: IIF - 2or+ conditions

Post by Lech Kulikowski »

Hello,

You can use the following operators in c#:
|| - or, && - and
https://docs.microsoft.com/en-us/dotnet ... -operators

Thank you.
brjohnsmith
Posts: 35
Joined: Mon Jan 29, 2018 11:04 am

Re: IIF - 2or+ conditions

Post by brjohnsmith »

Hi Lench, thank you, but I am looking for a standard stilmulsoft funcion, like using IIF, as the same as I mentioned in the first post.

{IIF(xxxxx=="A" || xxxxx=="B" ||....) - this is not working. any other hints.

thank you.
Lech Kulikowski
Posts: 7338
Joined: Tue Mar 20, 2018 5:34 am

Re: IIF - 2or+ conditions

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Post Reply