Correction needed to RevealWidget documentation

From https://tiddlywiki.com/#RevealWidget :

  • ype=lt: the content is displayed if the state tiddler contains an integer with a value less than the text attribute value
  • type=gt: the content is displayed if the state tiddler contains an integer with a value greater than the text attribute value
  • type=lteq: the content is displayed if the state tiddler contains an integer with a value less than or equal to the text attribute value
  • type=gteq: the content is displayed if the state tiddler contains an integer with a value greater than or equal to the text attribute value

From negative numbers in RevealWidget comparison not … mathematically accurate?:

The issue here is that the reveal widget only performs string comparisons, and doesn’t understand numbers at all.

Good idea to change that documentation.

My Guess is its only problem is with Negatives as you suggested;

1 lt 10: <$reveal type="lt" default=1 text=10>yes

So adding to the documentation “compares positive numbers only” is sufficient to correct it, until perhaps it is improved!