Re: How does SF6 interpret strings and numbers?
You have the GOTO *inside* of the IF loop which tests that value to see if it's less than 7. So it won't GOTO if the value is >= 7 because the IF statement tests to 'false'.
Corey Milner
Creative Director, Indigo Rose Software
Announcement
Collapse
No announcement yet.
How does SF6 interpret strings and numbers?
Collapse
X
-
How does SF6 interpret strings and numbers?
Hello,
I am pulling the currentVersion registry value for the netscape browser and storing it as a variable. The value returned is "7.01 (en)".
I then use the Left String function to grab the first string of this variable which is "7".
I now check this value using the following code:
IF (%stringResult% < "7")
IF (%YesNoResult% <> "YES")
Execute (%SrcDir%\installers\NSSetup8.exe)
END IF
GOTO Label(FINISH_BROWSER_CHECKING)
END IF
The problem is that when SF6 evaluates the first IF statement AND the %stringResult% >= "7", it never executes the GOTO Label(FINISH_BROWSER_CHECKING) statement.
Why? Does SF6 interpret strings and numbers the same way? If there a way to convert a string to a number so instead of "7" it is just 7?
thanks,
rise4peaceTags: None
Leave a comment: