Hello there, I'm working on the following script : If a checkbox named "attr_fatigue_rouge" is checked, the MAX value of sante is divide by 2 If the checkbox is uncheck, the MAX sante value come back to normal by multiplying it by 2 However, the script don't work, I'm a newby starting to develop my own character sheet and I don't understand why. There is my checkbox HTML : < div class = "grid-carton" > < div > Etat de fatigue <!-- A coder : fatigué = -30% aux stats, Ereinté = stats ingame divisées par 2 --> < input type = 'checkbox' class = "sheet-carton-jaune" name = 'attr_fatigue_jaune' aria-label = "Fatigué" /> < input type = 'checkbox' class = "sheet-carton-rouge" name = 'attr_fatigue_rouge' aria-label = "Ereinté" /> </ div > </ div > < div class = "grid-stats-pv-value" > < input type = "number" class = "sheet-number-main" name = "attr_sante" > / < input type = "number" class = "sheet-number-bar-max" name = "attr_sante_max" > </ div > My script : on ( 'change:fatigue_rouge' , function () { getAttrs ([ "sante_max" ], function ( values ) { let sante = parseInt ( values . sante_max )|| 0 ; if ( fatigue_rouge == on ) { setAttrs ({ sante_max : Math . floor ( newsante / 2 ) }); } else { setAttrs ({ sante_max : newsante * 2 }); } }); }); If anyone can explain me where I'm wrong, thank you !