Working with Strings/Text and Variables

I think I might be going mad here.

I've got a form of fields that I'm using to enter some values.

based on these values it spits out this with variables below replace with the actual values from the form.

Can you please generate a {=style} themed poll question about {=type} {=TVMOVIE} 

{if: type=="The TV Show" or type=="The Movie" }{else}They should be of the genre {=genre} and from {=year}{endif}

Can you please generate a {=style} themed poll question about {=type} {=TVMOVIE} 

These questions can be about the shows themselves or characters in the shows or the question can be about an individual show. And then provide 11 possible options for people to pick their answer from. Please make the final option Other - Leave Comment. You should number the options from 1 to 11

How can I put all that generated text into a variable?

eg

{newtext = "

Can you please generate a {=style} themed poll question about {=type} {=TVMOVIE}

{if: type=="The TV Show" or type=="The Movie" }{else}They should be of the genre {=genre} and from {=year}{endif}

Can you please generate a {=style} themed poll question about {=type} {=TVMOVIE}

These questions can be about the shows themselves or characters in the shows or the question can be about an individual show. And then provide 11 possible options for people to pick their answer from. Please make the final option Other - Leave Comment. You should number the options from 1 to 11
"

I can't seem to get the formula working.

Hey @AndyPage you'll need to concatenate the different strings:

{style="style"}
{type="The TV Show"}
{TVMOVIE="tvmovie"}
{genre="genre"}
{conditional_text="" if type=="The TV Show" or type=="The Movie" else "They should be of the genre "&{=genre}&" and from "&{=year}}
{newtext= "Can you please generate a "&{=style}&" themed poll question about "&{=type}&" "&{=TVMOVIE}&{=conditional_text}&"Can you please generate a "&{=style}&" themed poll question about "&{=type}&" "&{=TVMOVIE}&"
These questions can be about the shows themselves or characters in the shows or the question can be about an individual show. And then provide 11 possible options for people to pick their answer from. Please make the final option Other - Leave Comment. You should number the options from 1 to 11"}
{=newtext}

2 Likes

Ah ha.. Perfect. Knew it was something simple.

Thanks so much from stopping me losing my mind :rofl: