Join us today!

Notifications
Clear all

Array Comparison

1 Posts
1 Users
0 Reactions
705 Views
twinControls
Posts: 115
Admin
Topic starter
(@twincontrols)
Member
Joined: 2 years ago

Create a generic function to compare two arrays.

Inputs:
Enable (Bool)
Array1 (Any type of array, integer array, char array etc..)
Array2 (Any type of array, integer array, char array etc..)

Outputs:
ArrayDataMatch (Bool)
ArraySizeMismatch (Bool)
ArrayTypeMismatch (Bool)

If the arrays' data match, ArrayDataMatch should be True.
If the arrays' size don't match, ArraySizeMismatch should be True.
If the arrays are different types, ArrayTypeMismatch should be True.

Happy coding! 💻

Reply
Share: