The Wait command

J. Landman Gay jacque at
Fri Jun 24 16:53:45 EDT 2011

On 6/24/11 2:58 PM, 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?

You can use both in a wait command, for example:

   put "starting"
   put the seconds into tStart
   wait until the shiftkey is down or the seconds - tStart > 5
   put "stopping"

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the Use-livecode mailing list