How do I break out of a function without using return? or do I just have to return nil?
in php if you can use end to break out of the function without been in a loop is there not function like this for ams, I used AMS for years always asking myself thing but never thought about asking the forum.
so lets say we have
I know I could return the dialog
or
But the way I see it there should be a command to end the script without returning anything at all not even nil
in php if you can use end to break out of the function without been in a loop is there not function like this for ams, I used AMS for years always asking myself thing but never thought about asking the forum.
so lets say we have
Code:
function abc(s_string) if s_string == nil or s_string == '' then Dialog.Message('', 'somemessage'); end -- more code here end
Code:
return Dialog.Message('', 'somemessage');
Code:
return nil
Comment