The below script is present on page 3 of the survey. To see this in action start by answering this question (select at least 2 options). On the subsequent page we have a question-piped question that is repeated for each pet selected here. Click Next on the second page to check out the script output.
Example Lua Script
print(getpipeskus(3))
Example Legacy Custom Script
%%output .= sgapiPrint_R (sgapiGetPipeSkus(3));