CSI Report post Posted 09/08/2004 04:23 PM I have an eval module that checks the length of input from the previous module. The Play_1005_GetNumber Module captures a number which is 5 digits or less. The evaluation is: len($RV[Play_1005_GetNumber]) < 5 It works perfectly UNLESS the entered number starts with a zero, then, even if it is 5 digits in length, it causes the evaluation to always be True. I have confimed this by looking at the .vgl file for this script. The only thing I can think of is that I am using the wrong evaluation expression. What do you suggest? Share this post Link to post
Guest jusedawg Report post Posted 09/08/2004 09:57 PM Make $RV[Play_1005_GetNumber] a string when your are setting the results variable, then you can have leading zeros just fine. Share this post Link to post
CSI Report post Posted 09/08/2004 11:59 PM It is already a string, I think. The rv is stored in the log file with a leading zero and when I use it later in the script to do a database lookup, the leading zero is there. Share this post Link to post
SupportTeam Report post Posted 09/09/2004 09:30 AM len("$RV[Play_1005_GetNumber]") < 5 note the double quotes around the RV... that makes the len function evaluate the input as a string... Share this post Link to post