Discover allows inline scripting by enclosing function names inside double brackets. For example, you want to reference the answer to Q1 in question text of another question:
Why are you most likely to purchase {{getLabel("Q1")}}?While inline JavaScript has some security restrictions, you can conditionally return text based on logic using ternary operators. For example, to return TextA if Q1 is 1 and TextB if Q1 is 2, and TextC otherwise (if the logic check of 1 or 2 both return false), use the following:
{{getValue("Q1") === 1 ? "TextA" : getValue("Q1") === 2 ? "TextB" : "TextC";}}