Hello
I have a string, variable 1 that looks like:
A, B, C, D, E, F, G
then I have my second string variable 2 that looks like:
F, E, D
What I need is:
I use variable 1 as a kind of a list and if all elements of variable 2 are contained in the list (variable 2 is always fixed) then its fine but I need to log an error when they are not so for example:
1st example:
variable 1 = A, B, C, D, E, F, G
variable 2 = F, E, D
output: none (as all elements of variable 2 are contained in variable 1.
2nd example:
variable 1 = A, B, C, D, F, G (E is missing)
variable 2 = F, E, D
output: E is missing from the list
3rd example:
variable 1 = A, C, F, G
variable 2 = B, E, G
output: B, and E are missing from the list
How would you approach this?