The Wait command

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Jun 24 16:24:40 EDT 2011


Hi  Pete,

There are so many way to do what you want that the following is bound to look silly.

local lTimer,lCondition
on foo theSeconds
  if the seconds - theSeconds >= lTimer and lCondition is true then
    -- do something here
  else
    send "foo theSeconds" to me in 1 sec
  end if
end foo

or perhaps

local lCondition
on foo theSeconds
  if lCondition is true then
    -- do something
  else
    send "foo theSeconds" to me in theSeconds seconds
  end if
end foo

etc etc etc

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 24 jun 2011, at 21:58, Pete wrote:

> Trying to figure out how to suspend processing until either a condition is
> true OR a specific amount of time has elapsed.  Looks like the wait command
> allows one or the other but not both.  Any ideas how to do this?
> Pete
> Molly's Revenge <http://www.mollysrevenge.com>






More information about the use-livecode mailing list