Is there a way to join two lists of drug names and then refer back to it as the same list with if statements to trigger certain data points.
You can use the merge function to join two lists as follows:
{list1=["a", "b", "c"]}
{list2=["x", "y", "z"]}
{lists_merged=merge(list1, list2)}
{if: contains(lists_merged, "y")}
It contains Y.
{else}
It doesn't contain Y.
{endif}
Please let me know if that helps, or maybe you can share more details about your snippet context if you need more help with it.
Thank you! Exactly what I was looking for. Can I merge multiple list? Say 5 list? Then refer to the master list?
Hi @Geoff_Kraabel, Sure, you can add as many lists as needed, then refer to the master list like lists_merged in this example:
{list1=["a", "b", "c"]}
{list2=["x", "y", "z"]}
{list3=["i", "j", "k"]}
{lists_merged=merge(list1, list2, list3)}
{=lists_merged}