Custom function for calculated fields

Hello @hotiday

Yes, you can use the code you prefer, including loops, conditional statements, and even calling third-party blocks of code. Please, describe the equation you are trying to implement and your code.

Best regards.

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 25 minutes ago by hotiday.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer