Hi Philippe,
you can find the list of operators in the ImageJ macro language at
https://imagej.nih.gov/ij/developer/macro/macros.html#operatorsThe ImageJ macro interpreter is rather simple (which makes it fast); I
fear it would be quite some work to modify it for a ternary operator.
Of course, you could use Javascript, which has the ternary conditional
operator.
Michael
________________________________________________________________
On 2016-09-20 16:47, CARL Philippe (PHA) wrote:
> Dear all,
> are the Ternary logical operators implemented within the ImageJ macros language, like:
> x = x < 0 ? x - 5 : x + 5;
> Of course such instructions can be covered with if and else instructions, but they can quite shorten a code.
> I thank you very much in advance.
> My best regards,
> Philippe
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html