Sounds like the values are being evaluated as text data instead of as numeric data:
"3" > "13"
is a true statement as the "3" character is 'greater' than the "1" character.
Try using GetAsNumber to force the values to evaluate as numbers instead of text.
I had overlooked that the Troi Dialog captures input in its dialogs as text.
Therefore the function GetAsNumber as you suggested solved my issue.
Thanks again Phil, you rock!