Conditional filter in CrossDataband using expression.

Stimulsoft Reports.NET discussion
Post Reply
shivkrsingh
Posts: 24
Joined: Wed Dec 04, 2013 8:52 am

Conditional filter in CrossDataband using expression.

Post by shivkrsingh »

Hi,
How can I apply conditional filter in crossdataband by using expression. I want to apply something like
if(Feature.Count%2==0)
{
Line==1 || Line== (Features.Count/(int.Parse(Quote.ChildQuoteExists)+1)-(Features.Count/(int.Parse(Quote.ChildQuoteExists)+1))/2)+1
}
else
{
Line==1 || Line== ((Features.Count)/(int.Parse(Quote.ChildQuoteExists)+1)-(Features.Count/(int.Parse(Quote.ChildQuoteExists)+1))/2)+1)+1
}

But when i do this it gives me error. how can I solve this kind of case.
Attachments
filter.JPG
filter.JPG (32.72 KiB) Viewed 1011 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Conditional filter in CrossDataband using expression.

Post by Alex K. »

Hello,

Please try to use the IIF function.

Thank you.
Post Reply