
Hi folks, I'm trying to modify a roll template to include text conditionally based on a numerical range of a passed attribute. In Dungeon Crawl Classics, if you have 5 Stamina or lower, you take double damage from poison. I'd like to put this as a reminder when a Fortitude save is made: <rolltemplate class="sheet-rolltemplate-fortsave">
<div>Fort save: {{savingthrow}}</div>
{{#stamina <= 5}}
<div>Stamina is less than 5! Take double damage from poison</div>
{{/stamina <= 5}}
</rolltemplate> But I can't seem to find an operator to make it work. I thought maybe in the roll itself we could perform the test and pass the result: <button type="roll" name="roll_fortsave" value="&{template:fortsave} {{savingthrow=[[1d20]]}} {{isStaminaLow=@{stamina} <= 5}}>
Fort Save
</button> And then operate on whether the attribute is present or not: <rolltemplate class="sheet-rolltemplate-fortsave">
<div>Fort save: {{savingthrow}}</div>
{{#isStaminaLow}}
<div>Stamina is less than 5! Take double damage from poison</div>
{{/isStaminaLow}}
</rolltemplate> (I know what I've written above exactly isn't possible; it illustrates what I'm trying to achieve) Is there some way I could do this?