This should get you started.
check_list = {"One", "Two", "Three", "Four"};
todo_list = {};
nw = new window("Checkboxes", << modal(),
my_cb = checkbox(check_list),
panelbox("Actions",
hlistbox(
button box("OK",
keep_going = 1;
todo_list = my_cb << get selected;
),
button box("Cancel", keep_going = 0)
),
),
);
nt = nitems(todo_list);
if (keep_going & nt > 0,
for (i = 1, i <= nt, i++,
if (todo_list[i] == "One",
// Call function for One step
print("One");
,
todo_list[i] == "Two",
// Call function for Two step
print("Two");
,
todo_list[i] == "Three",
// Call function for Three step
print("Three");
,
todo_list[i] == "Four",
// Call function for Two step
print("Four");
);
);
);