Tests if an element exists in this Map.
Parameters
- key (String)
- Name of the element to look for
Return Value
True if the attribute is there, false otherwise
Examples
CopyC#
Sofu.Sofu.Map mymap = SofuReader.LoadFile("keys.sofu"); int key = Console.ReadKey(); if (mymap.HasAttribute(key.ToString())) { Console.WriteLine(mymap.value(key.ToString()).ToString()); }