2

String comparisons are case insensitive using Image J Macro. For example, the following will print "True":

if ("c" == "C") {
    print("True");
}

Does anyone know of a workaround to make case-sensitive comparisons in image J macro?

Jan Eglinger
  • 3,995
  • 1
  • 25
  • 51

1 Answers1

2

You could use Javascript from within the macro:

eval("script", "'c'=='C'");

or resort right away to a full-fledged scripting language like Javascript, Beanshell, Python, etc...

Jan Eglinger
  • 3,995
  • 1
  • 25
  • 51