I'm interested in the origin of the idiom:
If "ifs" and "buts" were candy and nuts, we'd all have a merry Christmas.
Furthermore, how should its meaning be interpreted? Are there alternate endings?
This question is too basic; it can be definitively and permanently answered by a single link to a standard internet reference source designed specifically to find that type of information. See the FAQ for guidance on how to improve it.
From The Phrase Finder:
It is used to express the fact that "if" and "but" are used too many times, so the speaker of this utterance disapproves of their use.