|
Topic: DMD0164 STRCMP - String Compare |
|
|
|
|
|
The String Compare (STRCMP) instruction will compare the contents of
one String to the contents of a second String or to a string literal
The instruction compares the byte values for the characters in order
until one of the following happens:
|
|
Parameters:Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.
First String - this can be any String element.
Case Sensitive
Set If Equal - if this option is selected the First String and the Second String or Text must be equal to set the designated BIT location ON. This can be any writable bit location.
Set If Less Than - if this option is selected the First String must be less than the Second String or Text to set the designated BIT location ON. This can be any writable bit location.
Set If Greater Than - if this option is selected the First String must be greater than the Second String or Text to set the designated BIT location ON. This can be any writable bit location.
Second String or Text - this
can be any String element or a string
literal
|
|
|
|
|
Status Display:The Status display of the String Compare instruction will only display as many of the characters of the First String and Second String or Text as will fit within the borders of the instruction, typically this is about 50 characters.
The gray triangle at the right end of an input leg indicates the input
is edge
triggered
|
|
|
|
|
See Also:
|
|
|
|
|
Related Topics:
String Scripting Language Reference
|
|
|
|
|
Rung Example:
|
|
|
|
|