Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Creating Multiple Formula in Plugin

$
0
0

Replies: 0

Hi.
I want to integrate the following formula.
There is fieldname1, and its value is like 1,2,3,4 and so on up to 8 and fieldname2

Now, I want to make the formula like:
if(fieldname1=1,fieldname2*2.50 and if it is less than 20000, the answer will be 20000, if(fieldname1=2,fieldname2*2.65 and if it is less than 25000, the answer will be 25000,
if(fieldname1=3,fieldname2*2.75 and if it is less than 30000, the answer will be 30000,
and so on up to fieldname1=8

Now, I want all the formula under one fieldname say fieldname3.

Need urgent help regarding this.
Thank You.


Viewing all articles
Browse latest Browse all 59525

Trending Articles