Whenever I click "Cancel" on an editbox or input box, the function returns the same value as if I clicked "Ok". Shouldn't it return a nil or other value? Or there should be a second variable with the button clicked?
CURRENT:
result = utils.inputbox("msg", "Title", "Nick")
OK ----- result = Nick
Cancel - result = Nick
PROPOSED:
result,button = utils.inputbox("msg", "Title", "Nick")
OK ----- result = Nick, button = ok
Cancel - result = Nick, button = cancel
Otherwise, how can we cancel further progression of the script if the user cancels at the input/editbox, where a "Valid" input/editbox entry could be nil/blank?
CURRENT:
result = utils.inputbox("msg", "Title", "Nick")
OK ----- result = Nick
Cancel - result = Nick
PROPOSED:
result,button = utils.inputbox("msg", "Title", "Nick")
OK ----- result = Nick, button = ok
Cancel - result = Nick, button = cancel
Otherwise, how can we cancel further progression of the script if the user cancels at the input/editbox, where a "Valid" input/editbox entry could be nil/blank?