beautypg.com

Waituntil, Aituntil – Visara Master Console Center Scripting Guide User Manual

Page 209

background image

Chapter 5 Script Commands

Scripting Guide

209

WAITUNTIL

Syntax:

WAITUNTIL( %MidnightSeconds)

Description:

Pauses current script execution until the specified time is reached.

Action:

Execution of the current script pauses until the specified time is reached.

Execution then continues with the next statement. If the specified time has
already passed, no pause occurs—execution continues immediately with the

next statement.

Parameters:

%MidnightSeconds. Numeric expression. The time expressed as the
number of seconds past midnight. Zero is 00:00:00 (midnight) and 86,399 is

23:59:59.

Returns:

N/A.

Notes:

Refer also to Date/Time on page 40.

Example:

%Time := TIME( “20:30”)

//8:30 PM

WAITUNTIL( %Time)

//wait here until 8:30pm

START( SHUTDOWN())

//run the script named “SHUTDOWN”

See Also:

DATE, SECONDS, TIME, TIMESTR, WAITFOR