That conditional is true. However its converse could be false: If a liquid is composed of hydrogen and oxygen, then it is water. That's because hydrogen peroxide H2O2 is not water but it is composed of hydrogen and oxygen. Edwin