![]() |
|
|
NLI: Function: and/& Background: NLI, Expressions, Functions Related: Examples Description: The and function gets things that are common among sub-expressions. The and function requires two or more sub-expressions. General Format: (and expr1 expr2 [expr3] ...) (& expr1 expr2 [expr3] ...) Examples:
(; Get persons whose gender is male)
(and (get person instance *)
(get * gender male))
(; Get cats that john likes)
(and (get cat instance *)
(get john like *))
(; Get verbs that relate john to mary)
(& (get verb instance *)
(get john * mary))
|