Declaration:  IsType(ItemPath, Type: String): Integer;
Returns 1 (True) if the item is of type given, otherwise returns 0 (False).

Source Code:

if IsType(itempath, 'Folder') then
  output('True');