From a005004bfdb9122896d1776b9e42985111592c8f Mon Sep 17 00:00:00 2001 From: Yongxuan Zhang <44033547+Yongxuanzhang@users.noreply.github.com> Date: Fri, 29 Sep 2023 13:20:38 -0400 Subject: [PATCH] Update teps/0145-cel-in-whenexpression.md Thanks! Co-authored-by: Jerop Kipruto --- teps/0145-cel-in-whenexpression.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teps/0145-cel-in-whenexpression.md b/teps/0145-cel-in-whenexpression.md index 6f24d49ed..e16ed4781 100644 --- a/teps/0145-cel-in-whenexpression.md +++ b/teps/0145-cel-in-whenexpression.md @@ -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