Answered
Help with adding variable to strings
Hello community! I'm trying to add a variable value to a string but my only experience with this are using the backticks and that doesn't seem to work. Here is what I have:
const t175CM = Number(this.getField("t175CultureMiddle").value);
const vIsletM = Number(this.getField("volumeIsletMiddle").value);
const cARm = (t175CM * 30) - vIsletM;
if (cARm < 0) {
const removed = '${cARm} mL-removed';
event.value = removed;
} else {
const added = '${cARm} mL-added';
event.value = added;
}Would appreciate some help. I got the impression in some other searches I need use a document level function but I'm probably not the sharpest knife in the drawer and not sure what that actually means.
Thanks in advance!