Re: Help with import results with criteria
Posted by Moniraj Ghosh on Apr 09, 2011; 8:27pm
URL: http://imagej.273.s1.nabble.com/Help-with-import-results-with-criteria-tp3685060p3685062.html
Hi,
I got a solution. i had to add an else statement as follows, which adds a "NaN" for every skipped row ( that does not match the criterion). However this is not exactly what I want. I do not want to import the row that does not match the criterion at all. Is there a way to do it?
Thanks so much for your reply.
....
items=split(lines[i], cellseparator);
if(items[8] <=d2s(1.3,1))
{
for (j=k; j<items.length; j++)
setResult(labels[j],i-1,items[j]);
}else
{ for (j=k; j<items.length; j++)
setResult(labels[j],i-1,NaN);
}
}
updateResults();
}