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: Cannot evaluate the expression as a time period

Warning: Cannot evaluate the expression as a time period

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 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 procedure can't evaluate the expression (or whatever text you type in) as a time, this warning will be generated in the Test details report.

  

  

Figure 1. This procedure waits for two Time elapsed events; the first is for a specific time, the second uses the result of a numeric expression which is assumed to be in seconds.

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 procedures 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0544