ImageJ macro language - return statement
Posted by
Niko Ehrenfeuchter on
May 20, 2014; 7:57am
URL: http://imagej.273.s1.nabble.com/ImageJ-macro-language-return-statement-tp5007801.html
Dear all,
I'm a bit puzzled by the behaviour of the macro language "return"
statement, i.e. running the following code
> function foo1(mystr){
> return(mystr);
> }
>
> function foo2(mystr){
> return mystr;
> }
>
> print(foo1("some random text"));
> print(foo2("some random text"));
results in this output:
> 0
> some random text
Is this intended? I couldn't find any hint about this in the official
macro language documentation [1].
Cheers
~Niko
[1]
http://rsbweb.nih.gov/ij/developer/macro/macros.html#functions--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html