15. マクロ cheat sheet(上級者向)
• 繰り返し
• 条件分岐
• 関数定義
// ← コメント
for (i=0; i<10; i++) {
j = 10*i;
print(j);
}
i = 0;
while (i < 10) {
print(i);
i = i + 1;
}
i = 0;
do {
print(i);
i = i + 10;
} while (i<=90);
// ans = "Yes”;
if (ans=="yes”)
print ("true");
else
print("false");
function dispose(title) {
selectWindow(title) ;
run ("Close") ;
}