Thatâs close but how would you get it to loop through each number and provide a comma separated string of the result?
I have the same issue as Andrew. Iâve been using PHP in Globiflow for so long that coming over to Javascript is somewhat foreign but I think Iâll get it once Iâve seen a few examples of how the pros would do it.
Another quick question I had is, whats the difference/when would you use a âPerform a Calculationâ vs âExecute a Scriptâ?
However,
The âPerform a Calculationâ I use for my simple scripts âone-linersâ and I think most importantly where there is only a single output variable
The âExecute a Scriptâ I use for more complex things and where the output is multiple variables.
I could do that âreplyAddâ calc at the top of the script but it is used further down the automation as well as in the script so it seems easier to do it in a separate calculation.
I think there is somethings (other than multiple output variables) that a âPerform a Calculationâ canât do but I couldnât list them, honestly, I just go on my gut and what feels most helpful
What I do like which I think sometimes gets missed is being able to run the calculation within a Create or update record block:
Having a small issue with the above that it doesnât actually add the value in the field. It will actually unset the field value if there is already a value there. Am I missing something obvious?