37
2
3
4
5
6
7
8
2.4
B
asic instructio
ns
2.4.1
C
omparison opera
tion instructions
*2:
The conditions under which character string comparisons can be made are as shown below:
• Match:
All characters in the strings must match
• Larger string: If character strings are different, determines the string with the largest number of character codes.
If the lengths of the character strings are different, determines the longest character string.
• Smaller string: If the character strings are different, determines the string with the smallest number of character codes.
If the lengths of the character strings are different, determines the shortest character string.
Category
Inst
ructi
on Sym
b
o
l
Symbol
Processing Details
Execution
Condition
Num
b
er o
f Ba
sic S
tep
s
Sub
set
See f
o
r Des
cr
iptio
n
Character
string data
comparisons
LD$=
• Compares character string S1 and character
string S2 one character at a time. *2
• Conductive status when (character string S1)
(character string S2)
• Non-Conductive status when (character string
S1)
(character string S2)
3
-
AND$=
OR$=
LD$<>
• Compares character string S1 and character
string S2 one character at a time. *2
• Conductive status when (character string S1)
(character string S2)
• Non-Conductive status when (character string
S1)
(character string S2)
3
-
AND$<>
OR$<>
LD$>
• Compares character string S1 and character
string S2 one character at a time. *2
• Conductive status when (character string S1)
(character string S2)
• Non-Conductive status when (character string
S1)
(character string S2)
3
-
AND$>
OR$>
LD$<=
• Compares character string S1 and character
string S2 one character at a time. *2
• Conductive status when (character string S1)
(character string S2)
• Non-Conductive status when (character string
S1)
(character string S2)
3
-
AND$<=
OR$<=
LD$<
• Compares character string S1 and character
string S2 one character at a time. *2
• Conductive status when (character string S1)
(character string S2)
• Non-Conductive status when (character string
S1)
(character string S2)
3
-
AND$<
OR$<
LD$>=
• Compares character string S1 and character
string S2 one character at a time. *2
• Conductive status when (character string S1)
(character string S2)
• Non-Conductive status when (character string
S1)
(character string S2)
3
-
AND$>=
OR$>=
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
$
S
1
S
2
S
1
S
2
$
$
S
1
S
2