Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Can this math be done in a macro

Hi and thanks in advance for your help. In macro math, is there a way to have an equation result in 0 rather than going into the negatives? So if I am subtracting 4 from 2, I want the result to be 0 instead of -2. I hope that is clear.
2-4>0
1449021419

Edited 1449021781
One way to do this is to use keep/drop functions . e.g. [[ {2 - 4, 0}kh1 ]] [[ {1d6 - 3, 0d0}kh1 ]]
Thank you both for the speedy response, works great!