Hi Dunbar, Am 18.01.2011 um 21:13 schrieb dunb...@aol.com:
> I am sure Colin could write a much longer handler that does what this one > does. > > on mouseup > if the hilite of me <> true then > set the hilite of me to true > break > end if > if the hilite of me = true then > set the hilite of me to false > end if > end mouseup > > Break works OK. It just passes control to the end of the handler. The docs > say is acts like "exit", and it does. Could not find this in the docs! > The way the script is written requires it, because there are two distinct > if/then structures, and the second would be invoked regardless of whether or > not the first was. > > Craig Newman > >> You can use break in an if end if structure?? > > sure you can! > But I won't make sense and will probably throw an error :-D Would have bet! :-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode