That would all be very helpful if the OP has asked about setting a Piston State using carriage return. However, they didn’t. But that’s for the demo on what a carriage return was.
So, @PhantomSpice, why do you want to use a carriage return in a variable? What are you planning on doing with that variable later that it has to contain a carriage return?
Also, you didn’t try wrapping the \n in double quotes…which it has to be. So, it might work…I’ve never tried it.
EDIT: Just tried it…it actually stores the \n as readable text. So, if you set your piston state to that variable later it should make a new line. Which makes sense when you think about it. The variable is just storing a text string. The piston state is using HTML to display the text.