Functions

decide

Function: decide()

decide(predicate, whenTrue, whenFalse, label?): DecisionNode

Defined in: src/lib/injection-engine/skillGraph.ts:169

Build a decision node. Leaves are skills (an Injection); internal nodes are other decide(...) results.

Parameters

predicate

(ctx) => boolean

whenTrue

Injection | DecisionNode

whenFalse

Injection | DecisionNode

label?

string

Returns

DecisionNode

On this page