Add the number valueNumber as a numeric value to the concept concept's attribute that has name attrNameString.
addnumval(concept, attrNameString, valueNumber)
concept - type: con
attrNameString - type: str
valueNumber - type: int
Nothing
If the attribute doesn't exist yet, addnumval will create it. If the concept is bad, an error appears in the log output window at runtime.
@CODE
G("Malibu") = makeconcept(findroot(), "Malibu");
addstrval(G("Malibu"),"Latitude Direction","North");
addstrval(G("Malibu"),"Longitude Direction","West");
addnumval(G("Malibu"),"Latitude value",33);
addnumval(G("Malibu"),"Longitude value",118);
addsval(G("Malibu"),"Route",1+2);