Tests if the List has a Sofu.Value at "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"); }