Knowing the underlying factor why you have sugar cravings can help you ward of that hunger for sweets.