Sofu Documentation
HasList Method (index)
NamespacesSofu.SofuListHasList(Int32)
Tests if the List has a Sofu.List at "index".
Declaration Syntax
C#
public bool HasList(
	int index
)
Parameters
index (Int32)
Index of the element to look for
Return Value
True if the element is there and is a List, false otherwise
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu");
if (file.list("Buildtragets").HasList(0)) {
    Console.WriteLine("The First buildtarget has other targets");
}
if (file.list("Buildtragets").HasObject(1) && file.list("Buildtragets").Object(1).IsList()) { //Same as HasList(1)
    Console.WriteLine("The Second buildtarget has other targets as well");
}

Assembly: Sofu (Module: Sofu) Version: 0.2.1.0 (0.2.1.0)