<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - switch() gives "wrong data type" error on reordering value-result pairs"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130583">bug 130583</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;">CC</td>
<td>
</td>
<td>serval2412@yahoo.fr
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - switch() gives "wrong data type" error on reordering value-result pairs"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130583#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - switch() gives "wrong data type" error on reordering value-result pairs"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130583">bug 130583</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>It seems type value is taken into account but it's not indicated in help:
see
<a href="https://help.libreoffice.org/7.0/en-US/text/scalc/01/func_switch.html?DbPAR=CALC#bm_id571556244875552">https://help.libreoffice.org/7.0/en-US/text/scalc/01/func_switch.html?DbPAR=CALC#bm_id571556244875552</a>
It could be interesting someone tests this on Excel.
Indeed,
<a href="https://opengrok.libreoffice.org/xref/core/sc/source/core/tool/interpr8.cxx?r=811b36e4#1919">https://opengrok.libreoffice.org/xref/core/sc/source/core/tool/interpr8.cxx?r=811b36e4#1919</a>
ScInterpreter::ScSwitch_MS so I suppose it mimicks Excel.
<a href="https://help.libreoffice.org/7.0/en-US/text/scalc/01/func_switch.html?DbPAR=CALC#bm_id571556244875552">https://help.libreoffice.org/7.0/en-US/text/scalc/01/func_switch.html?DbPAR=CALC#bm_id571556244875552</a>
IMHO, either it doesn't mimick Excel enough and code of "switch" should be
changed, or help should be amended.</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>