next up previous

12.11.1 Getting the List of Defrules

The function get-defrule-list returns a multifield value containing the names of all defrule constructs that are currently defined.

Syntax

(get-defrule-list)

Example

CLIPS> (clear)
CLIPS> (get-defrule-list)
()
CLIPS> (defrule foo =>)
CLIPS> (defrule bar =>)
CLIPS> (get-defrule-list)
(foo bar)
CLIPS>

12.11.2 Determining the Module in which a Defrule is Defined

This function returns the module in which the specified defrule name is defined.

Syntax

(defrulemodule <defrule-name>)


next up previous