QualifyIfPresent is an implementation of the Qualifier interface method.
(vars Activation, obj any, presenceOnly bool)
| 429 | |
| 430 | // QualifyIfPresent is an implementation of the Qualifier interface method. |
| 431 | func (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. |
| 436 | func (a *conditionalAttribute) Resolve(vars Activation) (any, error) { |