Yes, absolutely.  But more useful would be a case where you have a 
handler that operates on one or more parameters and returns a boolean 
which based on its input.  For example:

on IsBetweenZeroAndTen numberIn
    if (numberIn >= 0) and (numberIn <= 10) then
        return TRUE
    else
        return FALSE
    end if
end

x = IsBetweenZeroAndTen(y)
if x then

or in a single line

if IsBetweenZeroAndTen(y) then

Irv

At 11:24 AM -0300 9/2/02, Rodrigo Peres wrote:
>Hi list,
>
>I think that my subject is a little confusing uh???
>Is it possible in lingo to make handlers return a value and atribute this to
>a variable?? for example:
>
>
>on test
>if 2 + 2 = 4 then
>return false
>else
>return true
>end if
>end
>
>x = test()
>if x = true then .....
>
>
>Thank's in advance
>
>[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!]


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)
[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