Algorithmic issue
Posted by
CARL Philippe (LBP) on
May 02, 2016; 4:26pm
URL: http://imagej.273.s1.nabble.com/Algorithmic-issue-tp5016298.html
Dear all,
I would have a question that is not specifically ImageJ related, but rather
with programming in general.
Indeed, please consider the following macro code:
boola = newArray(true, false, true, true, false);
for(i = 0; i != boola.length; i++)
if(boola[i])
print(boola[i]);
Would there be a way to combine the for and if loops within a single one
giving the same result than higher?
I thank you very much in advance about your lighting concerning this
question.
My best regards,
Philippe
Philippe CARL
Laboratoire de Biophotonique et Pharmacologie
UMR 7213 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html