Hello, Because my character sheet have some tabs and to make finding information faster on my character sheet, I have make a resume page with all the important informations of the sheet for the players. On this page I display inter alia the repetitive sections of weapons and their roll buttons. But I want to conditionned the roll expression if the weapon effect is different of 'Aucun' (none). How can I change the value of the roll button ? Here is my code : < fieldset class = "repeating_weapons" > < div class = "dark_row" > < button type = "roll" style = " margin-left:0px;line-height:10px;height:20px;margin-bottom:2px;" title = "Combat corps à corps" name = "roll_Melee" value = "@{expressionRoll}" ></ button > < input class = "textbox" type = "text" name = "attr_ArmeNom" readonly = "readonly" style = " width:150px;margin-left: 0px;" /> < input class = "textbox-stat" type = "number" name = "attr_ArmeDegNv" style = " width:40px;text-align:center;" readonly = "readonly" > d10+ </ input > < input class = "textbox-stat" type = "number" name = "attr_ArmeDegModNv" style = " width:40px;text-align:center;" readonly = "readonly" /> < input type = "hidden" name = "attr_ModDegEffetResume" value = "" /> < input type = "hidden" name = "attr_EffetResume" value = "" /> < input type = "hidden" name = "attr_PourcentageResume" value = "" /> < input type = "hidden" name = "attr_NbTourResume" value = "" /> < input type = "hidden" name = "attr_expressionRoll" value = "" /> </ div > </ fieldset > on ( "change:repeating_weapons:ModDegEffet change:repeating_weapons:Effet change:repeating_weapons:Pourcentage change:repeating_weapons:NbTour" , function () { getAttrs ([ "repeating_weapons_ModDegEffet" , "repeating_weapons_Effet" , "repeating_weapons_Pourcentage" , "repeating_weapons_NbTour" ], function ( values ) { var modDeg = parseInt ( values . repeating_weapons_ModDegEffet ); var effet = values . repeating_weapons_Effet ; var pourcentage = parseInt ( values . repeating_weapons_Pourcentage ); var nbTour = parseInt ( values . repeating_weapons_NbTour ); var roll = '' ; const comparateur = 'Aucun' ; if ( effet === comparateur ) { roll = '&{template:degats} {{perso=@{Name} }} {{name=@{ArmeNom} }} {{RollDegats=[[@{ArmeDegNv}d10+@{ArmeDegModNv}]] }} {{Roll=[[1d100]] }}' ; } else { roll = '&{template:degats} {{perso=@{Name} }} {{name=@{ArmeNom} }} {{RollDegats=[[@{ArmeDegNv}d10+@{ArmeDegModNv}]] }} {{Roll=[[1d100]] }} {{TotalDegats=[[@{ArmeDegNv}d10+@{ArmeDegModNv}+@{ModDegEffetResume}]] }} {{effet=@{EffetResume} }} {{pourcentage=[[@{PourcentageResume}]] }} {{RollTour=[[1d@{NbTourResume}]] }}' ; } setAttrs ({ repeating_weapons_expressionRoll : roll , repeating_weapons_ModDegEffetResume : modDeg , repeating_weapons_EffetResume: effet , repeating_weapons_PourcentageResume: pourcentage , repeating_weapons_NbTourResume: nbTour }); }); });