Thanks Paul. They should replace the dictionary description with your version, 
as yours makes a LOT more sense! I read the dictionary too, but came away 
confused. 

Bob S

> On Oct 1, 2019, at 08:59 , Paul Dupuis via use-livecode 
> <[email protected]> wrote:
> 
> According to the Dictionary, if I am reading it correctly, in a command (vs 
> function)
> 
> return empty -- sets both 'it' and 'the result' to the parameter of the 
> return statement (in this case empty)
> return empty for value -- sets 'it' to the parameter (empty) and clears 'the 
> result' indicating no error (empty)
> return empty for error -- set 'the result' to the parameter (empty) and 
> clears 'it' (empty) indicating no value returned from the command
> 
> So, yes, "return empty" will do, but I choose to use "return empty for error" 
> to remind me that it is purposefully 'the result' that I wanted to clear.


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to