Thank you very much, problem solved!
And what if I wany to set data = fieldname12? Do I have to put it out of the parenthesis?
I am trying to implement the following function:
let i=1;
let data = 16;
let b = [];
for(i =1;i<data+1;i++){
let a = 10-0.0137039*i;
a = Math.exp(a);
b.push(a);
}
b = b.reduce((curr, more) => curr + more, 0)
however I don’t know where do I find a custom block of code able to do this!
-
This reply was modified 3 years, 8 months ago by hotiday.