I tried this but it doesn't work: -4*(1*@{weapon_damage_type-1}==4)] here is the full code for it. Anyone help please? <th><button type='roll' class="sheet-skillbutton" value="&{template:default} {{name=@{character_name} attacks with @{weapon_name-1} }} [[ ([[{9,11,13,15,17,21,24,27,30}<[[1d10+@{weapon_attack_rating-1}+?{Modifiers|0}-4*(1*@{weapon_damage_type-1}==4)]] ]]+ @{weapon_damage_base-1})*@{weapon_damage_Multiplier-1} ]] {{Roll=$[[0]]}} {{Levels=$[[1]]}} {{Damage=$[[2]]}}"></button> <td><input type="text" class="sheet-textbox" style="width:200px" name="attr_weapon_name-1" /></td> <th><input type="number" class="sheet-numberbox" name="attr_weapon_RoF-1" /></th> <th><input type="number" class="sheet-numberbox" name="attr_weapon_attack_rating-1" /></th> <th class="sheet-lb"><input type="number" class="sheet-numberbox" name="attr_weapon_damage_base-1" /></th> <th class="sheet-rb"><input type="number" class="sheet-numberbox" name="attr_weapon_damage_Multiplier-1" value="@{weapon_damage_type-1}" disabled="true" /></th> <th><input type="number" class="sheet-numberbox" name="attr_weapon_range_Short-1" /></th> <th><input type="number" class="sheet-numberbox" name="attr_weapon_range_Medium-1" /></th> <th><input type="number" class="sheet-numberbox" name="attr_weapon_range_Long-1" /></th> <th><select class="sheet-skill_select" name="attr_weapon_damage_type-1" > <option value="2">Bullet</option> <option value="1">Non-Bullet</option> <option value="4">Headshot</option></select></th>