Add numeric value number as a string to concept concept's attribute named nameString.
addsval(concept, nameString, number)
concept - type: con
nameString - type: str
number - type: int
Nothing.
If the attribute has not been created yet, addsval will create it.
Sometimes it is convenient to treat a number like a string. In this case, you can perform numeric operations in the number field of this function, but then have the result stored in the KB as a string.
@CODE
G("Malibu") = makeconcept(findroot(), "Malibu");
addsval(G("Malibu"),"Route",1+2);
addstrval, addnumval, addconval, Knowledge Base Functions