String_Greater_Than_Or_Equal

Compare the two strings and determine whether one follows the other in alphabetical order, or they are the same string. 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_Greater_Than_Or_Equal ("Test1", "Test2", Maximum Length, Ignore Case)

Return Value

Returns a Boolean. TRUE if Test1 precedes Test2 in alphabetical ordering or they are the same string, FALSE otherwise.

Example

Script(String_Greater_Than_Or_Equal_Test)
String(strEntered1)
String(strEntered2)
Boolean(bGreaterThan)
Activate(From_Menu)
strEntered1 = Ask_String("Type the first string", "String_Greater_Than_Or_Equal_Test", 0, 0, "")
strEntered2 = Ask_String("Type the second string", "String"Greater_Than_Or_Equal_Test", 0, 0, "")
bGreaterThan = String_Greater_Than_Or_Equal(strEntered1, strEntered2, 0, TRUE)
If(bGreaterThan)
Message("First string is greater than second string", 5)
Else
Message("First string is not greater than second string", 5)
End_If
Return

See Also

String_Empty, String_Less_Than, String_Less_Than_Or_Equal, String_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

Privacy and Legal