Repository navigation
This closes #2445, fix incorrect if result when third arg is missing - #2446
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2446 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 32 32
Lines 32527 32528 +1
=======================================
+ Hits 32437 32438 +1
Misses 88 88
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
xuri
approved these changes
Oct 9, 2026
xuri
left a comment
Member
There was a problem hiding this comment.
Good catch! Thanks for your contribution.
2 tasks done
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Details
Description
Make the IF function return FALSE when the condition is false and third argument is omitted. Before this change, it returned an empty string.
Related Issue
#2445
Motivation and Context
Excel returns FALSE in expressions like =IF(1=2,1). Excelize returned an empty string instead, so the result could not be used in arithmetic expressions: IF(1=2,1,IF(1=2,1))*2 returned #VALUE! instead of 0.
How Has This Been Tested
Added unit tests
Types of changes
Checklist