We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
As baxatob pointed out,, aqString.Compare does a character comparison of strings. If you're looking at comparing numeric values to determine if one is less than or greater than another, I would suggest converting the strings to integers and then comparing.
var String1 = "15";
var String2 = "7";
if (aqConvert.StrToInt(String1) < aqConvert.StrToInt(String2)) {
Log.Message('Well, this didn't work');
}
else { Log.Message('Worked just fine')}Thanks tristaanogre, this worked for me.
As baxatob pointed out,, aqString.Compare does a character comparison of strings. If you're looking at comparing numeric values to determine if one is less than or greater than another, I would suggest converting the strings to integers and then comparing.
var String1 = "15";
var String2 = "7";
if (aqConvert.StrToInt(String1) < aqConvert.StrToInt(String2)) {
Log.Message('Well, this didn't work');
}
else { Log.Message('Worked just fine')}Thanks tristaanogre, this worked for me.