A rollup won’t work, because the source is a string.
So as @ThinhDinh suggested, the simplest approach is to use JavaScript:
return p1
.split(', ')
.map(num => Number(num))
.reduce((acc, num) => acc + num, 0);
A rollup won’t work, because the source is a string.
So as @ThinhDinh suggested, the simplest approach is to use JavaScript:
return p1
.split(', ')
.map(num => Number(num))
.reduce((acc, num) => acc + num, 0);