TICKscript Variable - String Concatenation

Hi All,
In a Kapacitor’s TICKscript, I wanted to declare a string variable that will take the value of another variable (see below).

I tried =>
var mem_threshold = 65.0
var alert_msg = 'MEMORY resource is lower than 'mem_threshold

However, the “mem_threshold” value is not retrieved causing the “alert_msg” to only contain =>
'MEMORY resource is lower than ’

How do I fix this? Thanks!

I think you just have to use the addition + for string concatenation. For example:

var mem_threshold = 65.0
var alert_msg = "MEMORY resource is lower than ' + mem_threshold

@sebito91
Thanks so much. It works!!