
Near as I can tell, the answer is "no", but let me give a reductive example of what I'm trying.
<input type="checkbox" name="attr_MyAtt" value="MyAtt is set.">
<button class="sheet-broadcast-button" type="roll" name="roll_Show" value="&{template:my-template} {{text=@{MyAtt}}}"></button>
<rolltemplate class="sheet-rolltemplate-my-template">
{{#text}}
</rolltemplate>
So right now if the checkbox in the above example is checked, then the output is:
MyAtt is set.
And if the checkbox is not checked, then the output is:
0
Zero! Not an empty string! If it was an empty string this wouldn't be a problem. Since Roll20 apparently decides that an unchecked checkbox property if evaluated is zero (I get it; math often gets done with these things, but in my case I'm dealing with text, so I need it to transmit an empty string rather than a zero).
Because Roll20 sets an explicit value for an explicitly un-checked attribute... I'm kinda stuck here. Is there some ninja codetrick I'm missing that will let you test whether an @{MyAtt} evaluates to zero, and make it instead get treated as an empty string?