Allows code to detect when it is running in a rule.
kw
nil
The variable *in-interpreter* is bound to t if the code executing has been called (directly or indirectly) from the forward chaining rule interpreter. Otherwise it bound to nil. The value should not be changed.
KnowledgeWorks and Prolog User Guide (Unix version) - 01 Dec 2021 19:35:49