Concatenation expression syntax


#1

Question:

What is the proper syntax when using a local variable in a concatenation expression?
Ex: I want to create a field on a c3type called ‘series’ that concatenates a local variable (‘var’ for example purposes) with the string “_SERIES”. Should the expression be
series: ~ expression ‘concat(var, “_SERIES”)’ ?
OR
series: ~ expression ‘concat(“var”, “ ’_SERIES’ ”)’ ?

Answer:

series: ~ expression {id: “concat(var, ‘_SERIES’)”}