Skip to content

ConditionalInterpretable

ConditionalInterpretable evaluates a value-level CEL conditional expression.

new ConditionalInterpretable(optionsValue, exhaustiveValue?): ConditionalInterpretable

constructor initializes the conditional node state.

ConditionalInterpretableOptions

boolean = false

ConditionalInterpretable

eval(activation): Val

eval delegates to exec after promoting the activation to a frame.

Activation

Val

InterpretableV2.eval


exec(frame): Val

exec evaluates the condition and then only the selected branch.

ExecutionFrame

Val

InterpretableV2.exec


id(): number

id returns the expression id associated with the conditional node.

number

InterpretableV2.id


withExhaustiveEval(): ConditionalInterpretable

withExhaustiveEval returns a conditional which evaluates both result branches.

ConditionalInterpretable