ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Running procedures > Errors and warnings while running a procedure > Warning: A negative time value was used in a 'Time elapsed' event

Warning: A negative time value was used in a 'Time elapsed' event

Description

A procedure can use the Wait until statement to wait for a number of possible Events, one of which is the Time elapsed event. When this event is used, you need to enter the time to wait for as part of the event. This time can either be entered as text (for example, '30min' or '100ms') or can be the result of another numerical expression; if it's a numerical expression that is used, ANY-maze will assume that the value is in seconds.

If the expression results in a negative number, this warning will be generated, since a procedure cannot wait for a negative time.

More information

If this warning is generated, then the value used for the time elapsed will be 0. This means that the procedure will wait for 0 seconds to elapse, so will effectively drop straight through this Wait until statement without waiting at all.

See also:

 •Errors and warnings while writing a procedure 
 •Errors and warnings while running a procedure 
 •The Wait until statement 
 •Events available to a procedure 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0551