Tying Together Product Variants

I need to be able to set the product variant SKU through liquid. I have 2 variants, and when the user selects 1 variant and buys it, I want the SKU of the other variant to decrease as well. Is there a way to do this in liquid?