<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Calc automatically evaluates arguments of if() function"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138393">138393</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Calc automatically evaluates arguments of if() function
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0.2.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>libreoffice@skewray.com
</td>
</tr></table>
<p>
<div>
<pre>The if() function evaluates all its arguments, regardless of the value of the
first argument. This is bad.
An example of badness is if(A1,webservice(),"-"). If A1 is false, the URL
should not be accessed. URL sites can and often changes state on access.
Fix: The second two arguments of if() should only be evaluated depending on the
state of the first argument, rather than evaluating both and then choosing.</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>