<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_CLOSED bz_closed"
title="CLOSED NOTABUG - the current() function is confused if used inside or()"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121105#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_CLOSED bz_closed"
title="CLOSED NOTABUG - the current() function is confused if used inside or()"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121105">bug 121105</a>
from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
<pre>Just for explanation of the original description case:
=A1+STYLE(IF(OR(CURRENT() > 4, CURRENT() <3),"green","red"))
The first CURRENT() is the value of A1 pushed last onto the evaluation stack,
the second CURRENT() is the result of the comparison CURRENT() > 4 hence A1 > 4
which yields either 1 or 0 and as such is always <3 therefore the "green" style
is always applied.
As a general advice, do not use the STYLE() function but conditional formatting
instead.</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>