SpaceObServer.Application.IsFolder

<< Zum Inhaltsverzeichnis >>

Navigation:  OLE Automation > Application > Methods >

SpaceObServer.Application.IsFolder

Description

Returns true if the passed identifier (ID) is a folder.
 

Syntax

IsFolder (ID : <Integer>): <Boolean>
 

Parameters

ID

The identifier to check if it is a folder not not.

Return Value

True if the passed ID is a folder. False otherwise.

 
Example

PowerShell:
 
if($SOS.IsFolder($FolderID)){
 $NextID = $SOS.FirstChildID($FolderID)
}
else{  
 $NextID = $SOS.NextSiblingID($FolderID)
}

VBS:
 
if SOS.IsFolder(FolderID) then
 NextID = SOS.FirstChildID(FolderID)
else  
 NextID = SOS.NextSiblingID(FolderID)

Sets the variable NextID to the first child element if FolderID is a folder. Otherwise NextID is set to the next sibling element.