RETURN causes an unconditional exit from a user-defined function.
This function will be terminated if the second argument is 0.
function divide as N(arg1 as N, arg2 as N)
if arg2 = 0 then
ui_msg_box("Error","Cannot divide by zero")
divide = arg1/arg2
Language Reference, Reserved Words
Alpha Five Version 5 and Above