Compare the two strings and return TRUE if they do not have the same value. 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_Not_Equal ("Test1", "Test2", Maximum Length, Ignore Case)
Return Value
Returns a Boolean. FALSE if Test1 and Test2 are the same string, TRUE otherwise.
Example
Script( String_Not_Equal_Test )
String( strEntered1 )
String( strEntered2 )
Boolean( bNotEqual )
Activate( From_Menu )
strEntered1 = Ask_String( "Type the first string", "String_Not_Equal_Test", 0, 0, "" )
strEntered2 = Ask_String( "Type the second string", "String_Not_Equal_Test", 0, 0, "" )
bNotEqual = String_Not_Equal( strEntered1, strEntered2, 0, TRUE )
If( bNotEqual )
Message( "First string is not equal to second string", 5 )
Else
Message( "First string is equal to second string", 5 )
End_If
Return
See Also
String_Empty, String_Less_Than, String_Less_Than_Or_Equal, String_Equal, String_Greater_Than_Or_Equal, String_Greater_Than, 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