Skip to Content
United States National Library of Medicine National Institutes of Health

Introduction to Boolean Logic (continued)salmonella AND hamburger OR eggs

Nesting:

  • When using multiple Boolean operators in PubMed, they are processed left to right.

Example: salmonella AND hamburger OR eggs

This will retrieve records that include both terms salmonella AND hamburger as well as all records with the term eggs, whether or not they contain the other two terms.

 

  • salmonella AND (hamburger OR eggs)To change the order in which terms are processed, enclose the terms(s) in parentheses. The terms inside the set of parentheses will be processed as a unit and then incorporated into the overall strategy. This is called nesting.

Example: salmonella AND (hamburger OR eggs)

This will retrieve records that contain the term salmonella, as well as one or both of the terms hamburger OR eggs.

< Back | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Next >

Last reviewed: 28 April 2009
Last updated: 10 October 2008
First published: 20 March 2001
Metadata| Permanence level: Permanent: Dynamic Content