Condos are also generally a scam. Owning real estate but not the land under it is to become a victim of incredibly perverse economic motives.
You'd have a share of the claim on the value of the land.
Presumably everyone voted to tear it down because the building costs more to maintain as-is, than to tear down and rebuild.
It is also possible the condo voted to tear down the building and build new - if you owned the condo before you will have one again in 2 years, but you are required to live elsewhere in the mean time. (Million dollar condos in Iowa implies you can afford a second house/apartment, while in San Francisco it would not)
Generally, condo owners have an undivided interest in the land on which the property is built.