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

previousValue === newValue Upon Initial Change

1558038291
John D.
Pro
Sheet Author
I am experiencing the bug cited in these two threads: <a href="https://app.roll20.net/forum/post/7010879/slug%7D#newtopic" rel="nofollow">https://app.roll20.net/forum/post/7010879/slug%7D#newtopic</a> <a href="https://app.roll20.net/forum/post/5772323/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/5772323/slug%7D</a> My work around is:&nbsp;previousValue = (previousValue === newValue) ? 0:previousValue; This seems to work reliably when previsousValue is an integer (have not run into this with strings...yet), as I only encounter this specific bug when the corresponding field only has the default value, in this case 0, as assigned by the HTML.
Hi John, Unfortunately, it was not stated previously (sorry about that!) but a ticket has been made. I have gone ahead and appended your information to the existing ticket for the devs to investigate further. Apologies for the inconvenience!