:TEST
Purpose
Evaluates an expression in an external language and succeeds if it returns true.
Parameters
- expression
- An expression to be evaluated.
Examples
(:TEST (:JAVA (MyClass.isValidSequence ?sequence)))
(:TEST (:LISP (> (length ?sequence) 150))
Success criteria
Succeeds if the external function returns the equivalent of true
in that language.
Failure criteria
Fails if the external function does not return true.
Notes
See also the syntax for calling external functions.
Related commands
Back to...
Algernon commands
Algernon Documentation Central
Algernon home page