QualifyIfPresent is an implementation of the Qualifier interface method.
(vars Activation, obj any, presenceOnly bool)
| 565 | |
| 566 | // QualifyIfPresent is an implementation of the Qualifier interface method. |
| 567 | func (a *conditionalAttribute) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) { |
| 568 | return attrQualifyIfPresent(a.fac, vars, obj, a, presenceOnly) |
| 569 | } |
| 570 | |
| 571 | // Resolve evaluates the condition, and then resolves the truthy or falsy branch accordingly. |
| 572 | func (a *conditionalAttribute) Resolve(vars Activation) (any, error) { |