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

Displaying fields conditionally

Using the technique discussed and shown  here  I've managed to display elements if-and-only-if a certain option is selected from a dropdown. However, it would be really handy if I could do this based on numerical comparison. E.g. Show field if the value of a certain attr is higher than 3. Is this possible?
1602369448

Edited 1602369468
GiGs
Pro
Sheet Author
API Scripter
You cant do this directly in CSS. What you can do is create a sheet worker that sets an attribute with a value of 0 or 1 based on your rule, and then use that attribute to show or hide.
Thanks. Just found a thread with just such an example  here .