dialog example { button "Save without Updating", 1, 135 132 130 12 button "Save and Update", 2, 268 132 129 12, ok } on *:dialog:example:sclick:1-2: { <code code code, variables, stuff.> if ($did().whatnumberwasclicked == 2) { <special code> } }