I would like to set a value, call it FIRM, which could be either “Company” or “Branch” depending on the answer to a question about how many locations a company has. If the number is 1, FIRM = “Company”. If it is greater than 1, FIRM = “Branch”. Then I could pipe FIRM into the wording of later questions. Is there a way to do this?
There’s probably a way to do this, but it would be really complicated and tricky using piping, not to mention piping is a mess and makes data analysis a nightmare. For me anyway. I typically avoid using piping unless there’s just no other option.
I think it might just be easier to achieve what you’re wanting to achieve using logic instead. With logic you could build two versions of each of the later follow-up questions: 1 version would be for “Company” and 1 version would be for “Branch”. Then you could set logic on each of them so that they each appear appropriately. The logic for the “Company” questions would be “show if FIRM question is exactly equal to 1”. The logic for the “Branch” questions would be “show if FIRM question is greater than or equal to 2”.
Hope that makes sense and is helpful.