Is it possible to pass a string variable to the say function?

I am unable to use the say function to display the strings from a variable.

This is what I would like to achieve:

textString = “text string”
say textString

You have to wrap it in curly brackets.

textString = “text string”
say “{textString}”
1 Like

This is what I’ve done as well, but when written like this say writes 0.

Are you sure textString has a value at this point? Was it declared before the say line?


This was the issue! Looks like it wasn’t declared before say was called. I’ve moved the string variable declaration to load now at it seems to work. Thank you both!