Ubidots Community

Setting Variable A equal to Variable B when event triggered by Variable C

Hi, as the title says. I would like to save the latest variable value of Variable B in Variable A when Variable C goes from 1 to 0. Once Variable C goes from 0 to 1 I would like to set Variable B to the value saved in Variable A. Is this possible?