Modal logic
Modal logic is an extension of logic that takes modalities into account, that is, the ways in which a proposition can be true. Beyond plain true or false, it distinguishes what is necessary, which cannot be otherwise, what is possible, which could be, and what is contingent, which is but might not have been.
It formalizes reasoning that classical logic does not capture, such as "it is possible that" or "it is necessary that". It is often analyzed with the notion of possible worlds, sketched by Leibniz and then taken up by contemporary philosophy: a proposition is necessary if it is true in all possible worlds, and possible if it is true in at least one. Modal logic runs today through metaphysics, computing and linguistics.
An example
"2 + 2 = 4" is necessarily true, in every conceivable case. "It is raining" is only contingent: it is true at a given moment, but it might not have been.