Evaluates a Lisp form as a backward chaining goal.
kw
test lisp-form
lisp-form⇩ |
A single Lisp form. |
The backward chaining goal test
succeeds if and only if lisp-form returns a non-nil value. Any currently bound variables may be used in the lisp form.
test
can also be used as a forward chaining pre-condition, as described in 3.1.2 Forward Chaining Syntax.
(test (> ?c 10)) (test (not (and (eq ?a ?b) (member ?b ?c))))
KnowledgeWorks and Prolog User Guide (Unix version) - 01 Dec 2021 19:35:49