Join us today!

Notifications
Clear all

Array Comparison

1 Posts
1 Users
0 Reactions
2,888 Views
twinControls
Posts: 118
Admin
Topic starter
(@twincontrols)
Member
Joined: 4 years ago
[#195]

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: