String_Equal

Compare the two strings and determine if they are both TRUE or are both FALSE. 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_Equal ("Test1", "Test2", Maximum Length, Ignore Case)

Return Value

Returns a Boolean. TRUE if Test1 precedes Test2 are the same string, FALSE otherwise.

Example

Script(String_Equal_Test)

String(strEntered1)

String(strEntered2)

Boolean(bEqual)

Activate(From_Menu)

strEntered1 = Ask_String("Type the first string", "String_Equal_Test", 0, 0, "")

strEntered2 = Ask_String("Type the second string", "String_Equal_Test", 0, 0, "")

bEqual = String_Equal(strEntered1, strEntered2, 0, TRUE)

If(bEqual)

Message("First string is equal to second string", 5)

Else

Message("First string is not equal to second string", 5)

End_If

Return

See Also

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

Privacy and Legal