Support boolean operations 'and' and 'or' (#13764).

Change-Id: Ifa4926506e495d4ecfd76b601e2204dd5ef59fca