String_Less_Than_Or_Equal

Compare the two strings and determine whether one precedes 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_Less_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_Less_Than_Or_Equal_Test)
String(strEntered1)
String(strEntered2)
Boolean(bLessThan)
Activate(From_Menu)
strEntered1 = Ask_String("Type the first string",
"String_Less_Than_Or_Equal_Test", 0, 0, "")
strEntered2 = Ask_String("Type the second string",
"String_Less_Than_Or_Equal_Test", 0, 0, "")
bLessThan = String_Less_Than_Or_Equal(strEntered1,
strEntered2, 0, TRUE)
If(bLessThan)
Message("First string is less than or equal to second string", 5)
Else
Message("First string is not less than or equal to
second string", 5)
End_If
Return

See Also

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

© 2016 Wavelink Corporation. All Rights Reserved.