-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Q] NULL vs N/A #315
Comments
If you use the non-bang variant of evaluate, then |
Sadly, no. I'm trying to make |
Oh sorry, I should have read your comment more closely. 😞 I think we would need to substitute the nil value and allow evaluation to continue rather than throwing an error. Let me think about the best way to implement that change. |
I'm also very interested in a solution to this problem. We sometimes give a variable no value in the variable hash and would like to be able to evaluate it with something like ISNULL which we implemented. We would then expect |
Hello!
I was trying to calculate following formula using Dentaku:
IF(revenue - expense = NULL, expected_profit, revenue - expense)
. I created following Ruby script to test it:and got those results:
I was expecting

nil
to act as N/A in Excel, but it actually behaves like NULL error. I've created similar calculations sheet for Excel to illustrate this:I know that I can do
IF(OR(revenue = NULL, expense = NULL), expected_profit, revenue - expense)
, but there might be much more complicated expressions with much more variables in use and it would be hard to write a check for each of them. I would like to get help on couple of questions:nil
behave like N/A (i.e. most of operations should result in N/A rather than error)?IFERROR
which I can use instead?In case current behavior contains any bugs, I would be happy to help fixing them. Thanks in advance!
The text was updated successfully, but these errors were encountered: