Simplifies an expression with values in context.
This method tries to evaluate all the expressions and reduce them to its corresponding boolean value. If a value required for the expression is not present in the context, the minimal corresponding expression will be returned.
Raw expression.
Evaluation data context.
Optional
strictKeys: string[]keys to be considered present even if they are not present in the context
Optional
optionalKeys: string[]keys to be considered not present unless they are in the context or in
strictKeys
; when strictKeys
is undefined
and optionalKeys
is an array, every key that is not in
optionalKeys
is considered to be present and thus will be evaluated
Condition engine