Jump to content

'Compare Array Section' output tag values


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

  • NoamM changed the title to 'Compare Array Section' output tag values

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...