<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>4 if conditions in calculated fields

[ad_1]

Replies: 1

Dear codepeople,

my equation in calculation Field 8 is:

(function(){

if(fieldname2 < 520 ) return 100+((fieldname2-100)*0.2);

if(fieldname2 >= 520 ) return 184+((fieldname2-520)*0.3);

if(fieldname2 >= 1000 ) return 328+((fieldname2-1000)*0.1);

if(fieldname2 >= 1200 ) return 348);

})();

Everything works with the first and second statements – What do I have to do to fulfill conditions 3 and 4?

Thanks for help!

 

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