Okay, so Google didn't help me here, as the only thing I found (the kh1 formatting) got angry whenever something was negative. I'm assisting in making a Fire Emblem tabletop, and I'm trying to enforce a minimum of 0 in a roll to allow for numbers to be added to the end result within the template (as well as look less sloppy). &{template:default} {{name=Attack}} {{damage=[[(@{Str}+@{Might}-@{target|Def}+?{Triangle?|No,0|Win,1|Lose,-1})+?{Modifiers|0}]]}} {{hit=[[@{Acc}+@{Hit}-@{target|Eva}+?{Triangle?|No,0|Win,15|Lose,-15}]]}} {{crit=[[@{Crt}+@{WCrt}-@{target|Lck}]]}} {{speed=[[@{Spd}+@{EffSpd}]] vs [[@{target|Spd}]]}} To split up the relevant parts into a readable format: {{damage=[[ (@{Strength} + @{Might}) - @{target|Defense} + ?{Weapon Triangle? | Neutral, 0 | Advantage, 1 | Disadvantage, -1}) + ?{Modifiers | 0} ]]}} {{hit=[[ @{Accuracy} + @{Hit} - @{target|Evasion} + ?{Weapon Triangle? | Neutral, 0 | Advantage, 15 | Disadvantage, -15} ]]}} {{crit=[[ @{Crit} + @{WeaponCrit} - @{target|Luck} ]]}} I want each of these to enforce a minimum of 0. In particular, this part: (@{Strength} + @{Might}) - @{target|Defense} + ?{Weapon Triangle? | Neutral, 0 | Advantage, 1 | Disadvantage, -1}) so that I can add the modifiers to 0 instead of a negative number. How would I do this?