<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:ming.v.hua@qq.com" title="Ming Hua <ming.v.hua@qq.com>"> <span class="fn">Ming Hua</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Calc automatically evaluates arguments of if() function"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138393">bug 138393</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>
</td>
<td>1
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>NEEDINFO
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ming.v.hua@qq.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Calc automatically evaluates arguments of if() function"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138393#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Calc automatically evaluates arguments of if() function"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138393">bug 138393</a>
from <span class="vcard"><a class="email" href="mailto:ming.v.hua@qq.com" title="Ming Hua <ming.v.hua@qq.com>"> <span class="fn">Ming Hua</span></a>
</span></b>
<pre>(In reply to libreoffice from <a href="show_bug.cgi?id=138393#c0">comment #0</a>)
<span class="quote">> The if() function evaluates all its arguments, regardless of the value of
> the first argument.</span >
Are you sure?
A simple test with formula "=IF(0, 1/0, "Good")" shows that the "1/0" argument
is not evaluated, otherwise it would give a "#DIV/0!" error. Also from my
understanding (see <a class="bz_bug_link
bz_status_NEW "
title="NEW - IFS() and SWITCH() should short-cut evaluation like IF() and CHOOSE()"
href="show_bug.cgi?id=111675">bug 111675</a>) Calc's IF() shortcuts the evaluation of
arguments, but IFS() doesn't.
So if IF() function is evaluating both second and third argument for you,
please provide a sample document for testing.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>