Pass variables in a string with double quotes

Hi! I’m having trouble parsing a string that contains variables inside. This is what it looks like:

{"This is a test " + StrTest1 + " which fails with " + strTest2}

And I want to parse the variable out to microsoft flow project, but requires that the string is read with quotes, ex: {“This is a test 1 which fails with + 2”}

This should be solvable with double quotes, but I can’t figure how to arrange the code without it reads the whole string as a string without handling the variables!

I’ve tried assigning: strTestOut = {“”“This is a test " + StrTest1 + " which fails with " + strTest2"”"}
Just get an error which it states it’s missing an end to the expression.

second route: strTestOut = {“This is a test " + StrTest1 + " which fails with " + strTest2}
strTestOut = {”“” + strTestOut + “”"}

Second one just writes = + strTestOut +

Any suggestions would be appriciated!

as per my understanding , If you want the output like this : “Hello”
variable=“Hello”
Then write :—“”“”+variable+“”""Flowchart1.xaml (5.2 KB)
check this hope will help

2 Likes

Haha, so close! Thank you bud

@fh9090 try like this -
result = “{”"“This is a test “+1 +“which fails with + 2"””}”

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.