Quote:
Originally Posted by chaley
You are using the string (lexical) comparison operator (<) instead of the numeric comparison operator (<#).
As said in the template language manual, which is your friend:
BTW: the first_matching_cmp() or the switch_if() functions seem to satisfy your needs and are faster than a series of if statements.
BTW2: it seems you should be using >=# in the second relational clause of the if statements. Otherwise you are skipping exact matches.
|
Thank you for your help. I added switch_if() statements and updated the relational clauses as recommended. This fixed it, and it works flawlessly!