likecoding Posted November 21, 2017 Share Posted November 21, 2017 (edited) Hi, First I will have to read a value. Then read first two characters of the value. Then compare the value to see it it is greater than 8. First two characters sometimes can be null, string, alphanumeric or numeric. miless = "2mile(s)" myMile = mid(miless,1,2) print myMile If myMile>8 then print "a>b" End If It is always returning true even though first two characters are not numbers or less than 8. How can I do it? Edited November 21, 2017 by likecoding Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now