Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
102 Points
43 Posts
Jun 06, 2011 12:09 PM|LINK
ha, I think I understood the reason of this - when returning result function "If" tries to convert it to the needed type.
But it works incorrectly - it converts result to "Decimal" and not to "Decimal?", so "Nothing" is converted to decimal 0 and no error is thrown.. :)
trolis
Member
102 Points
43 Posts
Re: Another bug ?? If() function this time...
Jun 06, 2011 12:09 PM|LINK
ha, I think I understood the reason of this - when returning result function "If" tries to convert it to the needed type.
But it works incorrectly - it converts result to "Decimal" and not to "Decimal?",
so "Nothing" is converted to decimal 0 and no error is thrown.. :)