Hello! Revised version of my earlier post. I am a total beginner to coding. I am trying to use Sheet Worker to change an attribute if a checkbox is checked. When the Frenzy checkbox or the health attribute changes I want the sheet to change the injury attribute to zero but ONLY if the Frenzy checkbox is checked. If the checkbox is not checked I want the injury attribute to be changd to the arbitrary number 5. The way I have it coded does not work and it confuses me: I had this written with one "=" in the if condition and the sheet executes the setAttr injury (0) but ignores the else, I thought this was because there need to be 2 "==" but when I change it the entire script stops working. Any ideas what I am doing wrong? < tr > < h3 > Frenzy </ h3 > < td ></ td > < div > < th >< input type = "checkbox" class = "frenzybox" name = "attr_frenzy" value = "Frenzied" checked >< span ></ span ></ th > </ div > </ tr > on("change:health change:frenzy", function() { getAttrs(['health'], function(values) { if(frenzy = Frenzied) { setAttrs({injury:(0)}); } else { setAttrs({injury:(5)}) } })