Multiple IF function with DropDown forms
-
I would like to make a price check calculator, that will be calculate price depends on what option you choose, and with and DropDown there was no problem for me but with two I dont know how to make it this is my code idea:
(function cena(){ if(fieldname9 == "Tak") AND (fieldname11 == "Tak") return PREC((fieldname6*57)*1.1, 2); if(fieldname9 == "Tak") AND (fieldname11 == "NIE") return PREC((fieldname6*45)*1.1, 2); if(fieldname9 == "NIE") AND (fieldname11 == "Tak") return PREC((fieldname6*57), 2); else return PREC((fieldname6*45), 2); } )();It works like you pick Height and Weight then it calculate to m2 and then it depend what you choose Yes/No in to DropDowns it changes the price, but i have no idea how to make it work, beacuse it have to make choose from all possibility of choose YES/YES Yes/NO NO/YES and No/No
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Multiple IF function with DropDown forms’ is closed to new replies.