Compare the two strings and determine their alphabetical order. If the Maximum Length value is greater than 0, any characters after the specified number of characters are ignored. If Ignore Case is TRUE, then upper-case and lower-case letters are considered to be equal.
Parameters
Test1 |
Gets compared with Test2. |
Test2 |
Gets compared with Test1. |
Maximum Length |
Indicates whether the number of characters is limited. |
Ignore Case |
Indicates whether the case of the letters is taken into consideration. |
Format
String_Less_Than ("Test1", "Test2", Maximum Length, Ignore Case)
Return Value
Returns a Boolean. TRUE if Test1 precedes Test2 in alphabetical ordering, FALSE otherwise.
Example
Script(String_Less_Than_Test)
String(strEntered1)
String(strEntered2)
Boolean(bLessThan)
Activate(From_Menu)
strEntered1 = Ask_String("Type the first string", "String_Less_Than_Test", 0, 0, "")
strEntered2 = Ask_String("Type the second string", "String_Less_Than_Test", 0, 0, "")
bLessThan = String_Less_Than(strEntered1, strEntered2, 0, TRUE)
If(bLessThan)
Message("First string is less than second string", 5)
Else
Message("First string is not less than second string", 5)
End_If
Return
See Also
String_Empty, String_Less_Than_Or_Equal, String_Equal, String_Greater_Than_Or_Equal, String_Greater_Than, String_Not_Equal, String_Set, Number_To_String_Decimal, Ask_String, Get_Screen_Text, Speech_To_Text, Get_Scan_Type_Name
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other