In my current task, I am attempting to compare two sets of strings: A1 must match A2 when selected. However, if A1 is chosen along with B1, C1, or D1, the comparison should return false. Similarly, selecting B1 should result in a match with only B2, while A2, C2, and D2 should be considered incorrect.
To clarify this further, let's assume we have two arrays: {"A1", "B1", "C1", "D1", "E1"} {"A2", "B2", "C2", "D2", "E2"}
For example, if "A1" and "B2" are selected from dropdown menus, if arr[0] does not equal arr2[0], the comparison should return false.
I am currently unsure about the method to compare an index value between two separate arrays.
Thank you for your assistance.