Group true / false keywords around a comparison