Compare two variables and print the difference

compare two variables and print the difference

i have two variables

X1=rac1,rac2
Y1=rac2,rac3

output=rac1,rac3

Did you not research the site first...

How about modifying this one, circa 05-08-2019:

Compare two variables and print the difference

Moderator comments were removed during original forum migration.