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
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.
G("Malibu") = makeconcept(findroot(), "Malibu");
addstrval, addnumval, addconval, Knowledge Base Functions