break
Exit a while() or for() loop. continue
Jump back to the beginning of a while() or for() loop. else {
All commands inside an else block are executed if the expression in the earlier if block is false. for (i = 0; i < 10; i++) {
All commands inside a for loop block are repeatedly executed. function doSomething() {
Defines a list of commands as function which can be called. if (expression) {
All commands inside an if block are only executed if expression is true. macro "title" {
Macro sets can be defined to make reusable macro available via ImageJs menu, the toolbar or via shortcuts. See documentation for more details. print("\\Clear") Empty the log window. print("\\Update:[text]") Update the recent line of the log window by replace its content by [text]. print("\\Update[n]:[text]") Update the [n+1]th line of the log window by replace its content by [text]. var
The
var
statement allows defining global variables which are available from different macros. See documentation for more details. while (expression) {
All commands inside a while loop block are repeatedly executed until expression becomes false.