is evaluation order defined, and evaluation of conditionals

Bob Sneidar bobs at twft.com
Tue Jun 26 11:51:17 EDT 2012


Very good point Peter. That could be very useful to know. 

Bob


On Jun 26, 2012, at 7:17 AM, Peter M. Brigham wrote:

> It's also useful if you have a general handler that needs to screen out certain types of objects, eg:
> 
> on mousemove
>   if word 1 of the target = "field" and the locktext of the target then
>      set the defaultcursor to hand
>   else
>      set the defaultcursor to empty
>   end if
> end mouseup
> 
> If the second condition were not skipped after the first one is found false, then you'd get an error message when moving over a button.
> 
> -- Peter
> 
> Peter M. Brigham
> pmbrig at gmail.com
> http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list