![]() |
|
|
NLI: Function: val & val+ Background: NLI, Expressions, Functions Related: Examples Description: The val function gets an existing instance named by specified string. The instance's class is specified by the element prior to val expression. The val+ function creates an instance, if specified one does not exist. General Format: (get entity attribute (val 'nameOfAttributeInstance)) (get entity attribute (val+ 'nameOfAttributeInstance)) Examples: (get john gender (val 'male)) (get john gender (val+ 'male)) Notes: (get john gender (val+ 'male)) is approximately equivalent to (get john gender (get+ gender instance 'male)). |