Hello again, folks! So I'm currently attempting to have have a readonly text input reference a list of Values based on a number within a hidden element based on a range. Specifically, I'm creating a sheet for a game based in the Basic Roleplaying system which has a number of tables that rely on a range of values. In this particular case, I want a text box to display the relevant Damage Bonus based on the combination of the Strenght and Size scores. The table is as follows: 2 to 12 = -1d6
13 to 16 = -1d4
17 to 24 = none
25 to 32 = +1d4
33 to 40 = +1d6
41 to 56 = +2d6
and so on. At present, the html for this particular section is: <span class="label dmgbonus" value="Dmg. Bonus"></span>
<input type="hidden" name="attr_dmgcalc" value='(ceil(@{strength_base} + @{size}))'/>
<input type="text" class="content dmgdis" name="attr_damage_display" readonly/> Essentially, I need for the input with "attr_damage_display" to display the appropriate damage modifer (none, -1d4, -1d6, etc.) which would be pulled based on the value of "attr_dmgcalc" and where it's number falls in the range of values. To be honest, I have absolutely no idea how I would do this with pure html or sheetworkers, especially considering that I still know so little about how sheet workers operate and I can't find any examples similar to what I'm doing here. Any help would be greatly appreciated and I can't thank you enough for your help thus far!