Hello
I have a string in a variable and its content is fixed:
var 1 = A, B, C, D, E, F, G, H
Then I have another variable that contains string with elements, it should always be the same as variable 1 so:
var 2 = A, B, C, D, E, F, G, H
What I need is a way to verify if my variable 2 is the same as my variable 1 and if not then I will need to log what is the difference. So for example my log would be:
In the case above:
missing elements: none
In the following case:
var 1 =
A, B, C, D, E, F, G, H, I, J
var 2 = B, C, A, F, E, G, (H, I, and J are missing here)
the log would need to look like:
missing elements: H, I, J
How should I approach it?