You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this conditions object, it has one type of condition CONDITION.EXCLUDE.
In side EXCLUDE condition array, it is two object, one is {a: true, b: true} another is {a:true}.
If an object { a: any } pass into condition check with this EXCLUDE condition array, it will return null. Because first one b is excluded but a is not, second one a is not excluded in {a:true}, both condition not match.
If an object { b: any } pass into condition check with this EXCLUDE condition array, it will return EXCLUDE, 'a' . Because the first one a is excluded in {a: true, b: true} condition but b is included, so first one is not match, the second condition is matched, because a is excluded.
Example 2
{[CONDITION.EXCLUDE]: [{a: true},{b:true}],},
If an object { a: any } pass into condition check with this EXCLUDE condition array, it will return EXCLUDE, 'b' . Because even first one a is included, second one b is excluded in { a: any }.
The text was updated successfully, but these errors were encountered:
conditions object
Example 1
In this conditions object, it has one type of condition
CONDITION.EXCLUDE
.In side
EXCLUDE
condition array, it is two object, one is{a: true, b: true}
another is{a:true}
.If an object
{ a: any }
pass into condition check with thisEXCLUDE
condition array, it will returnnull
. Because first oneb
is excluded buta
is not, second onea
is not excluded in{a:true}
, both condition not match.If an object
{ b: any }
pass into condition check with thisEXCLUDE
condition array, it will returnEXCLUDE, 'a'
. Because the first onea
is excluded in{a: true, b: true}
condition butb
is included, so first one is not match, the second condition is matched, becausea
is excluded.Example 2
If an object
{ a: any }
pass into condition check with thisEXCLUDE
condition array, it will returnEXCLUDE, 'b'
. Because even first onea
is included, second oneb
is excluded in{ a: any }
.The text was updated successfully, but these errors were encountered: