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

Bug? {{#^propertyName}} {{/^propertyName}} doesn't seem to be working

1620968325
Mel P.
KS Backer
Sheet Author
Compendium Curator
While I've been able to get a section of a roll template to appear if a property is provided using  {{#<property>}}  and {{/<property>}}  tags, the inverse tags  {{#^<property>}}  and  {{/^<property>}} are not working. Regardless of whether or not the property is provided, the roll template treats it as if the property was not provided and fails to render the section. Is this a known bug?
1620968806

Edited 1620968914
Mel P.
KS Backer
Sheet Author
Compendium Curator
I may have just figured out the problem. The wiki on this page is incorrect:&nbsp; <a href="https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates</a> The documentation needs to be update to say: &nbsp; {{^&lt;property&gt;}} &nbsp;followed by {{/&lt;property&gt;}} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; instead of&nbsp; {{#^&lt;property&gt;}} &nbsp;followed by {{/^&lt;property&gt;}}
1620983975
Andreas J.
Forum Champion
Sheet Author
Translator
I updated the section: <a href="https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Helper_Functions" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Helper_Functions</a> Only recently started to scratch the surface of the helper functions, and barely anyone besides me updates the documentation, so not surprising that it had gone unnoticed for a good while. It's stated correctly higher up in the same article, so checks out.
1620994619
Mel P.
KS Backer
Sheet Author
Compendium Curator
Thanks. I had updated the Logic section shortly after discovering the error last night as well: <a href="https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Logic" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Logic</a>
1620995365

Edited 1620996102
Mel P.
KS Backer
Sheet Author
Compendium Curator
Actually, I think the part you changed may have been correct to begin with. For some reason, the helper functions like NOT rollLess() need to be closed with /^ but simply checking if a property was NOT included only needs to be closed with a / We might need to revert your changes then after someone else can verify my findings.
1621003946
Andreas J.
Forum Champion
Sheet Author
Translator
sounds like you could update the section with your findings, and revert it back.
1621271736
Mel P.
KS Backer
Sheet Author
Compendium Curator
Done. Should be correct now based on my testing. My first attempt at a custom sheet is starting to look pretty good. I just got it configured so the player can choose a color for their sheet and for their roll templates to match their choice.
1621271960

Edited 1621271972
Nic B.
Roll20 Team
Mel, your sheet looks great, congratulations! Is that for World Wide Wrestling? Please tell me you're intending to submit it to the public repo! I just wanted to chime into the conversation in this thread to say that I'm putting in a ticket for investigation of this issue/discrepancy. I don't know if it's a bug, but it certainly doesn't appear as though the syntax is consistent. I'll update you all when I hear more.
1621274329
Mel P.
KS Backer
Sheet Author
Compendium Curator
It's indeed for World Wide Wrestling. And yes, I'm planning to submit it to the public repo at some point. I'm pretty new to this level of HTML/CSS so I used this as a learning opportunity, so it might be a bit messy. I still need to finish the Notes tab and clean up/comment my files a bit before then, they're a bit disorganized at the moment.
1622536348
GiGs
Pro
Sheet Author
API Scripter
I can confirm that the syntax for this used to be &lt;&lt;#^ , if it is now &lt;&lt;^ that could break some sheets (definitely will break one or two of my personal sheets). So it will be nice if you can report back when the situation is understood.