# This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 2.0 France License. # To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/2.0/fr/ # or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. body common control { bundlesequence => { "my_intersection" }; } bundle agent my_intersection { vars: "countries_list1" slist => { "australia", "canada", "fiji", }; "countries_list2" slist => { "australia", "bulgaria", "malaysia", "fiji", }; "countries_intersection" slist => intersection("countries_list1", "countries_list2"); # Slist to string for reports "countries_list1_str" string => join(" ", "countries_list1"); "countries_list2_str" string => join(" ", "countries_list2"); "countries_intersection_str" string => join(" ", "countries_intersection"); reports: "List 1 of countries is: $(countries_list1_str)"; "List 2 of countries is: $(countries_list2_str)"; "Countries present in both lists are: $(countries_intersection_str)"; }