From 0fcee36b13cb37b092d1849cab6da7eac1dbdc89 Mon Sep 17 00:00:00 2001 From: Robert Haase Date: Sun, 27 Sep 2020 16:26:44 +0200 Subject: [PATCH] Added a semicolon Missing semicolon was spotted by LPUoO https://forum.image.sc/t/auto-code-completion-for-ij-macro/11642/147 --- src/main/resources/doc/ij1macro/functions_extd.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/doc/ij1macro/functions_extd.html b/src/main/resources/doc/ij1macro/functions_extd.html index efff78f6c..75ecddbaa 100644 --- a/src/main/resources/doc/ij1macro/functions_extd.html +++ b/src/main/resources/doc/ij1macro/functions_extd.html @@ -15,7 +15,7 @@ All commands inside an else block are executed if the expression in the earlier if block is false. -filelist = getFileList(directory)
for (i = 0; i < lengthOf(filelist); i++) {
if (endsWith(filelist[i], ".tif")) {
open(directory + File.separator + filelist[i]);
}
}
+filelist = getFileList(directory);
for (i = 0; i < lengthOf(filelist); i++) {
if (endsWith(filelist[i], ".tif")) {
open(directory + File.separator + filelist[i]);
}
}
A for loop which opens all files ending with ".tif" in a folder.