Logical Rules Functions
Logical functions to use in rules.