Boolean logic in computer rules