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

Method ConditionalAttribute

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

ConditionalAttribute creates an attribute with two Attribute branches, where the Attribute that is resolved depends on the boolean evaluation of the input 'expr'.

(id int64, expr Interpretable, t, f Attribute)

Source from the content-addressed store, hash-verified

41 // ConditionalAttribute creates an attribute with two Attribute branches, where the Attribute
42 // that is resolved depends on the boolean evaluation of the input 'expr'.
43 ConditionalAttribute(id int64, expr Interpretable, t, f Attribute) Attribute
44
45 // MaybeAttribute creates an attribute that refers to either a field selection or a namespaced
46 // variable name.

Implementers 1

attrFactoryinterpreter/attributes.go

Calls

no outgoing calls