Login  Register

Re: Bug in boolean macro expression?

Posted by Gabriel Landini on Jun 05, 2014; 9:43pm
URL: http://imagej.273.s1.nabble.com/Bug-in-boolean-macro-expression-tp5008047p5008050.html

On Thursday 05 Jun 2014 22:54:24 Norbert Vischer wrote:
> a =  false && false || true && true;
> print(a);
Maybe you need to write the macro:

a =  (false && false) || (true && true);

That returns 1

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html