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

IF Function

4 Answers 68 Views
ExpressionEditor
This is a migrated thread and some comments may be shown as answers.
Nathaniel
Top achievements
Rank 1
Nathaniel asked on 15 Nov 2011, 08:21 PM
What does the IF function support?   

This works
If(TRUE, 2, 3)  ... returns 2  

so why doesn't this work
IF(TRUE, 2.3, 3.2)

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 16 Nov 2011, 08:56 AM
Hello Nathaniel,

I have tested the expression you mentioned on our demo, but still I get correct result. Please take a look at the image attached to verify whether I am missing something in my attempt to reproduce the case.
  

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Nathaniel
Top achievements
Rank 1
answered on 16 Nov 2011, 01:17 PM
I cant reproduce what I wrote up yesterday. It works as expected today. Thanks for the quick reply.
0
Nathaniel
Top achievements
Rank 1
answered on 16 Nov 2011, 09:13 PM
Maya, Can you answer a question I asked before about the Pow() function

In the first look example I change the first rows UnitPrice to 3.3.  Then I change the expression to be

Pow(UnitPrice, UnitPrice)   this works

but

Pow(3.3, 3.3)  does not

but

Pow(3, 3)  works

What does the Pow function accept?
0
Maya
Telerik team
answered on 17 Nov 2011, 09:38 AM
Hello Nathaniel,

Actually, this is not the expected behavior and we have already logged it into our Public Issue Tracking System. You can follow its progress here.
For the time being I could suggest to insert the function as follows - Pow(2.5e0,2.5e0).
Thus the parser will be aware that those are decimal numbers and will be able to calculate the function.

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ExpressionEditor
Asked by
Nathaniel
Top achievements
Rank 1
Answers by
Maya
Telerik team
Nathaniel
Top achievements
Rank 1
Share this question
or