Support for logical AND, OR and NOT in conditions