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?
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?
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...