Skip to content

Commit

Permalink
Update teps/0145-cel-in-whenexpression.md
Browse files Browse the repository at this point in the history
Thanks!

Co-authored-by: Jerop Kipruto <[email protected]>
  • Loading branch information
Yongxuanzhang and jerop authored Sep 29, 2023
1 parent e721063 commit a005004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teps/0145-cel-in-whenexpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ when:
- cel: "\”duh\” not in [\"foo\", \“bar\”]”
```

**Note:** The `WhenExpressions` contains a list of `WhenExpression`, if any `WhenExpression` is false it will return false. So we’re using ANY to evaluate the list of `WhenExpressions`. And this will remain the same for this proposal. For each WhenExpression, there will be one CEL expression which can fully replace the current when expression functionalities.
**Note:** The `WhenExpressions` contains a list of `WhenExpression`, if all `WhenExpressions` are true it will return true and allow execution. So we’re using AND to evaluate the list of `WhenExpressions`. And this will remain the same for this proposal. Each existing `WhenExpression` can be replaced with a CEL expression.

#### Use CEL to Support ANY operator

Expand Down

0 comments on commit a005004

Please sign in to comment.