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 .
×
Advertisement Create a free account

Default Attributes

1432321731
Samuel Penn
KS Backer
Is there a way to default an attribute to a value if it doesn't exist? I'd like to be able to something like @{target|flag?0}, where it returns either the value of the flag, or zero if it doesn't exist.
1432323237
The Aaron
Forum Champion
API Scripter
Hmmm.. not as a macro, but you can certainly do that in code.