You are absolutely correct.
Can i nest a function? (write a function within a function)
CheckBoxHandler = Function ({cb},
If ( cb << Get,
//Call function with apple/banana if checkbox is checked
checkedbox ()
,
//Else
//Call function with mango/watermelon if checkbox is not checked
uncheckedbox ()
),
);
//Function 1 - box is checked
checkedbox = Function ({},
Match ( x,
"a", callapple,
"b", callbanana
)
);
//Function 2 - box is not checked
uncheckedbox = Function ({},
Match (x,
"a", callmango,
"b", callwatermelon
)
);
I need to add a match function in the [ Button Box ("OK", ] command