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

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