I'd like to concat some string-based variables and I want each of them in a new line. However, I can't find the correct way to write the code. This is what I tried:
The variable $att takes different values in the different parts of the code.
I also tried:
but none of them work; I get the messages in the same line
Code:
set mensaje "Error: esta atenuacion: $att dB\n"
gset listaMensajes [concat [gget listaMensajes] "$mensaje"]
set mensaje "Error: esta atenuacion: $att dB\n"
gset listaMensajes [concat [gget listaMensajes] "$mensaje"]
puts "[gget listaMensajes]"
The variable $att takes different values in the different parts of the code.
I also tried:
Code:
gset listaMensajes [concat [gget listaMensajes] "\n" "$mensaje"]
but none of them work; I get the messages in the same line