Previous Topic: existsCustomOperatorNext Topic: existsFolder


existsDataset

The existsDataset function checks whether a dataset 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 = existsDataset(datasetPath)

Arguments

datasetPath (String)

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

Return Value

bExists (Boolean)

Returns true if the dataset object exists or false if it does not.

Example

if (existsDataset(datasetPath))
{
	Process.mseg_dataset= "Dataset Common exists" ;
}
else
{
	Process.mseg_dataset= "Dataset Common does not exist" ;
}