:FAIL

Purpose

Inverts the success or failure result of a clause.

Parameters

clause
A clause to be evaluated.

Examples

  (:FAIL (color ?x green))
  (:FAIL (:RETRIEVE (color ?x ?y)))
  (:FAIL (:TEST (:LISP (> ?length 10)))

Success criteria

Succeeds if the clause does not succeed.

Failure criteria

Fails if the clause succeeds.

Notes

Related commands

All commands can be used in the clause parameter of :FAIL.

Back to...

Algernon commands
Algernon Documentation Central
Algernon home page