View Single Post
Old 06-17-2023, 08:35 PM   #642
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,462
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I'm still curious as to why it worked as expected for me but not estherflails.
Probably because of the choice of input values. Using lexical compares, the only values that fail are ones that are not 2 digits: '100' and '1'-'9'.

You could make it work lexically by formatting the test value with leading zeros.

Last edited by chaley; 06-17-2023 at 08:42 PM. Reason: Changed '0'-'9' to '1'-'9' because zero would work unless the value is zero padded.
chaley is offline   Reply With Quote