it returns immediately


On 20 Feb 2002 at 10:14, Matthew DeSimone wrote:

Quick question.  When the return function is called so that a handler
returns a value, does that exit the handler, or will execution continue?

For instance, lets say I have repeat loop:

        repeat with control = 1 to someList.count
                if someList.count = 0 then
                        return "found"
                    else 
                   alert "not there"
        end repeat

does the call to return immedeatly end the handler execution, and return
the value?  Or will it continue to the next conditional test?

~matt desimone
[EMAIL PROTECTED]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-
L is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to