Previous Topic: existsResourceNext Topic: formatDate


existsSchedule

The existsSchedule function checks whether a schedule object exists in the given path. The path can be an absolute/relative path. The relative path is relative to the process in which the script is executed.

Syntax

bExists = existsSchedule(schedulepath

Arguments

schedulepath (String)

Specifies the full/relative path of the schedule object whose existence needs to be checked.

Return Value

bExists (Boolean) 

Returns true if the scheduleobject exists or false if it does not. 

Example

if (existsSchedule("testSchedule")) 
{Process.mseg_schedule= "testSchedule exists" ;} 
else 
{Process.mseg_schedule= "testSchedule does not exist" ;}
if (existsSchedule("testSchedule")) 
{Process.mseg_schedule= "testSchedule exists" ;} 
else 
{Process.mseg_Schedule= "testSchedule does not exist" ;}