A programmer and his wife.
She says, "We're out of bread. Please go the grocery store and buy one. And if they've got eggs, get six."
After a while, he's back with six loaves of bread.
The wife asks, "Why did you buy 6 loaves of bread?"
He replies, "They had eggs."
Royal Cannon
He should have bought 7 loaves of bread. The first instruction is the unconditional "get one loaf of bread", so he should buy 1 loaf. The second is the conditional "if they have eggs, get six loaves" which means he should get six MORE loaves. In total, therefore, he should buy 7, not 6 loaves of bread.