[Libreoffice-bugs] [Bug 111675] IFS() and SWITCH() should short-cut evaluation like IF() and CHOOSE()
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 15 19:27:47 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=111675
--- Comment #18 from Andreas Heinisch <andreas.heinisch at yahoo.de> ---
The problem here ist that the calculations within the IFS function (for
instance the DIV) are evaluated before the actual IFS function itself. Hence,
any further calculation leads to a DIV to ZERO error, because if there is an
error, no further calculations are made.
So this example leads to this error:
=IFS(0,1/0,1,TRUE())
This example works:
=IFS(0,1/0,1,"test")
So I think the only possibility to get this to work, is to change the generated
compilation steps for this function.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210415/4ccd18cf/attachment.htm>
More information about the Libreoffice-bugs
mailing list