
Was wondering if anyone has example of using a "Conditional Statement (Math only)" in a button macro, which uses other values?
For example, I have an weapon attack button which has a value below, but I want to add a "conditional value if check box is checked.
{{attack==[[d10cs>@{attack-crit-range}+(@{bonus}+@{global-bonus}+@{attack-bonus})]]}}
So I have a checkbox attr_weapon_bonus_indicator with value of 1, and a second field, attr_weapon_bonus, that I want to add to the above macro if the checkbox is checked?
The conditional I think I want is, but not sure how to add to the above button macro?
[[{{@{weapon_bonus_indicator},0}>1}*(@{weapon_bonus}-0) + 0]]
Thanks