This is a migrated thread and some comments may be shown as answers.

IIF runs two parts

2 Answers 243 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 16 Sep 2019, 10:08 AM

telerik report designer : 13.1.19.618

When I use IIF as = IIF(1 > 0, 1, 0/ 1) , it throws exception Attempted to devide by zero. I think it is a bug.

2 Answers, 1 is accepted

Sort by
0
Anders
Top achievements
Rank 1
answered on 16 Sep 2019, 10:09 AM

The expression is IIF as = IIF(1 > 0, 1, 1/0 ). 

 

ps : There is no way to edit the thread.

0
Silviya
Telerik team
answered on 16 Sep 2019, 01:16 PM

Hi Anders,

When you use the IIf built-in function, both sides of the expression are evaluated during the processing. To avoid issues if one of the sides contains division by zero, I can suggest using ?: conditional operator instead.

Best Regards,
Silviya
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Anders
Top achievements
Rank 1
Answers by
Anders
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or