![]() |
|
|
NLI: Function: or/| Background: NLI, Expressions, Functions Related: Examples Description: The or function gets each of the specified inputs over successive calls. The or function requires atleast one sub-expression. General Format: (or expr1 [expr2] ...) (| expr1 [expr2] ...) Examples:
(; Gets red then blue)
(or red blue)
(; Gets things whose color is either red or blue)
(get * color (| red blue))
(; Gets fruits and then veggies)
(or (get fruit instance *)
(get veggie instance *))
(; Gets things that like fruits or veggies)
(get * like (or (get fruit instance *)
(get veggie instance *)))
Notes: |