Jump to content

'Compare Array Section' output tag values


Kojekude

Recommended Posts

Dear Kojekude,
From Help section:

Use this to compare sections of an array of bits or registers.
Compare returns the location of the first array element that differs where the given arrays differ,  and -1 when they are equal.

 

Parameter Name

Purpose

A

First Array

Select the Array to compare to

B

Start Index in first Array

Set the start member for the compare operation

C

Second Array

Select the Array to compare

D

Start Index in second Array

Set the start member for the compare operation

E

Compare Length

This is the number of registers for the compare operation.

F

Result

This is the tag that contains the result

- The location, in the second array, of the first element that differs from the first

- -1 if the array values are identical

- -2 if the index values, or length, exceed the length of the array.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.