Previous Topic: Compare Value of an Accumulator with an IntegerNext Topic: Compare a Variable and a String


Compare Two Strings

ACL/E can also compare two strings to determine whether they are identical. The following elementary example shows you how a statement comparing two strings looks:

COMPARE 'Hello','Goodbye'

The result of this comparison is represented by the condition code NE, which indicates that the two strings are not identical.