Code block contains string + variables in the middle

:wave: Hello Dynamo users,
I would like to ask if is it possible to have a code block which contains some variables in between. I tried something but didn’t work and probably just because I am a professional noob.

Anyway, what I would like to achieve is something like that:


I know how to do it if you place the “variable” at the end of the string but not in between, hopefully it is just a matter of syntax.

If anyone knows how to solve that would be amazing. Thanks. :sunglasses:

It’s that easy.


I knew it could have been easy, just a matter of syntax! shame on me… thanks @PauLtus :slight_smile: :pray:


I’ve build immense graphs to get similar things done before I found out you can do it like this.
So it was the smart move to just ask here. :wink:

eheheh, that’s exactly what I was planning to do :rofl: :rofl: thanks again