Page 1 of 1

IIF - 2or+ conditions

Posted: Tue Jun 23, 2020 12:56 am
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.

Re: IIF - 2or+ conditions

Posted: Wed Jun 24, 2020 9:10 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: IIF - 2or+ conditions

Posted: Wed Jun 24, 2020 11:37 pm
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.

Re: IIF - 2or+ conditions

Posted: Thu Jun 25, 2020 7:53 am
by Lech Kulikowski
Hello,

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

Thank you.