Tests if a specific element in this Map exists and is a Sofu.List
Parameters
- key (String)
- 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.HasList("Parameter")) { Sofu.Sofu.List parameters = file.list("Parameter"); foreach (SofuObject para in parameters) { Console.Out.Write("Parameter: "); try { Console.Out.WriteLine(para.AsValue().ToString()); } catch (SofuNotValueException e) { Console.Out.WriteLine("Parameter synatx wrong, expected a Sofu Value"); } } } else { Console.WriteLine("No parameters defined"); }