Condition returns the compiled predicate expression which must evaluate to true before the output or subrule is entered.
()
| 146 | // Condition returns the compiled predicate expression which must evaluate to true before the output |
| 147 | // or subrule is entered. |
| 148 | func (m *CompiledMatch) Condition() *cel.Ast { |
| 149 | return m.cond |
| 150 | } |
| 151 | |
| 152 | // ConditionIsLiteral indicates whether the condition for the match is a literal with a given value. |
| 153 | func (m *CompiledMatch) ConditionIsLiteral(val ref.Val) bool { |