The Wait command

Mark Schonewille m.schonewille at
Fri Jun 24 15:24:40 CDT 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
    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
    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
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here

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 <>

More information about the use-livecode mailing list