parameter variables question

Scott Rossi scott at tactilemedia.com
Tue Jul 29 17:29:01 EDT 2003


Recently, "Alex Rice"  wrote:

> on testIt p1, p2
>  if p1 + p2 = 0 then
>    return "bad parameters"
>  else
>    -- do stuff
>    return empty
>  end if
> end testIt
> 
> Why does this handler throw an error when called like this?

Try changing "return" to "answer" or "put".

Otherwise, change "on testIt" to "function testIt".

I believe the word "return" is reserved for functions, not handlers.

Both changes work on this end.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list