say you have OH- , if the substrate is usually tertiary, then it will go through E2 mostly and make a double bond...if it is a primary, then it will go through SN2 most likely, and if it's a secondary, it will go through both in an appreciable amount...but remember even if it is a tertiary, it will have "some" SN2 products, albeit a very small amount...