Working on a new character sheet. I am trying to set a value using a checkbox as a switch, but I can't get it to work. Here is the relevant code with the checkbox and input box. <span class="sheet-table-data-skills"><input type='checkbox' name='attr_isprofskill' value='0' /></span>
<span class="sheet-table-data-skills"><input type="text" name="attr_animalhandling1catbonus" title="animalhandling1catbonus (Professional Bonus)" value="@{isprofskill}*{@{animalhandling1ranks},{30}}kh1}" disabled="true"></span> Specifically the part I would like to calculate out is value="@{isprofskill}*{@{animalhandling1ranks},{30}}kh1}" Where isprofskill is either 1 if the checkbox is checked and 0 if not times the lesser of the number of skill ranks or 30