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

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