easy-rules icon indicating copy to clipboard operation
easy-rules copied to clipboard

Is it possible to have a default rule?

Open MohdFahimSheikh opened this issue 2 years ago • 2 comments

Is it possible to have a default rule? means if we have multiple rules in YML file. and No one rule condition is satisfied(True) in that case we should have a default rule which would be execute. just like a conditional statement if our any one rule is satisfied then default rule will not be execute and if no one rule is satisfied in that case default rule will be execute?

MohdFahimSheikh avatar May 05 '22 04:05 MohdFahimSheikh

I think you can define a lowest priority rule to solve the problem(call default rule). this rule's condition always be true, if all rules not satisfied(True),I think default rule will be satisfied(True) .

Does this answer solves this issue?

miaojincs avatar Jun 13 '22 12:06 miaojincs

Possible duplicate of #364

vshanbha avatar Jun 24 '22 18:06 vshanbha