:BRANCH

Purpose

Creates an inference branch for each value in a list of values.

Parameters

?variable
A variable to be bound.
expression
An expression that evaluates to a list of values.

Examples

  (:BRANCH ?x (:LISP '(1 2 3)))
  (:BRANCH ?z (:JAVA (MyClass.someGenerator 3)))

Success criteria

Always succeeds unless an error occurs in the evaluation of the expression.

Failure criteria

Fails only if an error occurs during evaluation of the expression.

Notes

See also the syntax for calling external functions.

Related commands


Back to...

Algernon commands
Algernon Documentation Central
Algernon home page