Retrives a specifc Sofu.Value from the List given by index.
- index (Int32)
- Position of the requested Value
The requested Value
Sofu.Sofu.List list = new Sofu.Sofu.List(); list.AppendElement(new Sofu.Sofu.Value("1")); list.AppendElement(new Sofu.Sofu.Map()); list.AppendElement(new Sofu.Sofu.List()); Sofu.Sofu.Map mymap = list.value(0); try { Sofu.Sofu.List myothermap = list.value(3); } catch (SofuNotValueException e) { Console.WriteLine("Third Element of \"list\" is not a Value"); Console.WriteLine(e.message); }
| Exception | Condition |
|---|---|
| SofuNoElementException | Will throw SofuNoElementException when the Index is out of the range of the List |
| SofuNotValueException | Throws a SofuNotValueException if the requested element is not a Value |