MCPcopy Create free account
hub / github.com/cel-expr/cel-go / QualifyIfPresent

Method QualifyIfPresent

interpreter/attributes.go:431–433  ·  view source on GitHub ↗

QualifyIfPresent is an implementation of the Qualifier interface method.

(vars Activation, obj any, presenceOnly bool)

Source from the content-addressed store, hash-verified

429
430// QualifyIfPresent is an implementation of the Qualifier interface method.
431func (a *conditionalAttribute) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {
432 return attrQualifyIfPresent(a.fac, vars, obj, a, presenceOnly)
433}
434
435// Resolve evaluates the condition, and then resolves the truthy or falsy branch accordingly.
436func (a *conditionalAttribute) Resolve(vars Activation) (any, error) {

Callers 1

Calls 1

attrQualifyIfPresentFunction · 0.85

Tested by 1