[tw5] Re: negative numbers in RevealWidget comparison not ... mathematically accurate?

2021-11-22 Thread TW Tones
My Guess is its only problem is with Negatives as charlie 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! It should be quite easy to swap the negatives for

[tw5] Re: negative numbers in RevealWidget comparison not ... mathematically accurate?

2021-11-22 Thread andres....@gmail.com
That do make sense. ListWidget will work for what I am doing as well... actually, not sure why I went with RevealWidget as I am using ListWidget for other comparisons elsewhere ... *shrug* Thanks for the answers! On Monday, November 22, 2021 at 9:42:36 AM UTC jeremy...@gmail.com wrote: > The

[tw5] Re: negative numbers in RevealWidget comparison not ... mathematically accurate?

2021-11-22 Thread Jeremy Ruston
The issue here is that the reveal widget only performs string comparisons, and doesn't understand numbers at all. More complex comparisons including numeric operations can be performed with the list widget and filter. Best wishes Jeremy On Monday, November 22, 2021 at 3:56:53 AM UTC

[tw5] Re: negative numbers in RevealWidget comparison not ... mathematically accurate?

2021-11-21 Thread Charlie Veniot
G'day, I think gt and lt in reveal widgets, only works with positive integers. On Sunday, November 21, 2021 at 10:45:58 PM UTC-4 andres@gmail.com wrote: > I might be missing something, but given this demo here: > > 0 gt -5: <$reveal type="gt" default=0 text=-5>yes > -1 gt -5: <$reveal