@mladams922
If you want to study a more complicated example, here there is something that you could reuse/adapt. Look for the LEARN function in the rule: this function save status of all lights, in order to reuse it later.
In the rule code search for :
// SAVE ACTUAL LIGHTS STATUS TO SELECTED SCENE
https://community.openhab.org/t/configurable-scenarios/10140/3